Skip to content

Commit

Permalink
proxy-proto: ensure there's a space after "TCP4/6"
Browse files Browse the repository at this point in the history
  • Loading branch information
omar-polo committed Jun 17, 2024
1 parent fb8311e commit 2a090b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions proxy-proto.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ check_proto_v1(char **buf)
default: return (-1);
}

if ((*buf)[1] != ' ')
return (-1);

// '4' / '6' + ' '
*buf += 2;

Expand Down

0 comments on commit 2a090b8

Please sign in to comment.