]> jfr.im git - irc/quakenet/newserv.git/commitdiff
sync http://hg.quakenet.org/snircd/diff/a6777c0c2924/ircd/ircd_string.c
authorPaul <redacted>
Wed, 24 Dec 2008 18:19:37 +0000 (18:19 +0000)
committerPaul <redacted>
Wed, 24 Dec 2008 18:19:37 +0000 (18:19 +0000)
--HG--
branch : paul

lib/irc_ipv6.c

index 0a4d6215458c89377097f8525b2937b72cdcbbef..638db74c378d2d47b39269a2a4c94bcf1d0eadda 100644 (file)
@@ -113,7 +113,7 @@ ircd_aton_ip4(const char *input, unsigned int *output, unsigned char *pbits)
     ip |= part << (32 - 8 * dots);
     part = 0;
     if (input[pos] == '*') {
-      while (input[++pos] == '*') ;
+      while (input[++pos] == '*' || input[pos] == '.') ;
       if (input[pos] != '\0')
         return 0;
       if (pbits)
@@ -231,7 +231,7 @@ ipmask_parse(const char *input, struct irc_in_addr *ip, unsigned char *pbits)
       *pbits = part;
       goto finish;
     case '*':
-      while (input[++pos] == '*') ;
+      while (input[++pos] == '*' || input[pos] == ':') ;
       if (input[pos] != '\0' || colon < 8)
         return 0;
       if (pbits)