diff --git a/proxy-proto.c b/proxy-proto.c index bef2633..fe5436d 100644 --- a/proxy-proto.c +++ b/proxy-proto.c @@ -51,6 +51,9 @@ check_proto_v1(char **buf) default: return (-1); } + if ((*buf)[1] != ' ') + return (-1); + // '4' / '6' + ' ' *buf += 2;