From: Paul Date: Wed, 24 Dec 2008 18:19:37 +0000 (+0000) Subject: sync http://hg.quakenet.org/snircd/diff/a6777c0c2924/ircd/ircd_string.c X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/commitdiff_plain/054effe6416722c268d20db0e6c5f93fa7b79388 sync http://hg.quakenet.org/snircd/diff/a6777c0c2924/ircd/ircd_string.c --- diff --git a/lib/irc_ipv6.c b/lib/irc_ipv6.c index 0a4d6215..638db74c 100644 --- a/lib/irc_ipv6.c +++ b/lib/irc_ipv6.c @@ -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)