From: Joshua Drake Date: Mon, 30 Nov 2015 21:25:56 +0000 (-0800) Subject: Check for # of segments of ipv6 address within range X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9dbf6180517777ce5ee6044b791788929609efbe;p=p0f-client-exim.git Check for # of segments of ipv6 address within range --- diff --git a/p0f-client-exim.c b/p0f-client-exim.c index 923e169..73a3a12 100644 --- a/p0f-client-exim.c +++ b/p0f-client-exim.c @@ -86,7 +86,7 @@ static void parse_addr6(char* str, u8* ret) { } - if (seg != 6) { + if (seg < 6 || seg > 8) { SAYF("Malformed IPv6 address (incorrect number of segments parsed)"); exit(1); }