proxy-proto: ensure there's a space after "TCP4/6"

This commit is contained in:
Omar Polo 2024-06-17 20:47:24 +00:00
parent fb8311e48f
commit 2a090b866d

View File

@ -51,6 +51,9 @@ check_proto_v1(char **buf)
default: return (-1);
}
if ((*buf)[1] != ' ')
return (-1);
// '4' / '6' + ' '
*buf += 2;