From 2a090b866d78d8e9a06a1e49e6b48cd4b5a488d0 Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Mon, 17 Jun 2024 20:47:24 +0000 Subject: [PATCH] proxy-proto: ensure there's a space after "TCP4/6" --- proxy-proto.c | 3 +++ 1 file changed, 3 insertions(+) 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;