Silence warnings, check length

This commit is contained in:
Alex Hultman
2020-06-06 20:26:59 +02:00
parent b17aad916f
commit 0d9cb39db6
4 changed files with 16 additions and 15 deletions
+1 -1
View File
@@ -188,7 +188,7 @@ private:
ProxyParser *pp = (ProxyParser *) reserved;
/* Parse PROXY protocol */
auto [done, offset] = pp->parse({data, length});
auto [done, offset] = pp->parse({data, (unsigned int) length});
if (!done) {
return {0, user};
} else {