]> jfr.im git - irc/quakenet/newserv.git/commitdiff
CORE: Port from ircd: ircd/ircd_string.c (ipmask_parse): Return zero if there is...
authorPaul <redacted>
Tue, 18 Jun 2013 19:45:39 +0000 (20:45 +0100)
committerPaul <redacted>
Tue, 18 Jun 2013 19:45:39 +0000 (20:45 +0100)
lib/irc_ipv6.c

index 82d567264bc98e46efb8470e0bc40d38c6dd1e8c..8123685979401db2db6046f407c1a13fcf76c2e7 100644 (file)
@@ -247,6 +247,8 @@ ipmask_parse(const char *input, struct irc_in_addr *ip, unsigned char *pbits)
     default:
       return 0;
     }
+    if (input[pos] != '\0')
+      return 0;
   finish:
     if (colon < 8) {
       unsigned int jj;