projects
/
ircu2.10.12-pk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be7c44e
)
ircd_string.c: Support abcd* in ipmask_parse().
author
Michael Poole
<mdpoole@troilus.org>
Thu, 17 Sep 2015 00:35:41 +0000
(20:35 -0400)
committer
Michael Poole
<mdpoole@troilus.org>
Thu, 17 Sep 2015 00:35:41 +0000
(20:35 -0400)
ircd/ircd_string.c
patch
|
blob
|
history
diff --git
a/ircd/ircd_string.c
b/ircd/ircd_string.c
index f27db15c4b4184bcfba87731b0f0e873b5ce9d14..7785d58c60d57d9bccab5230b2f7c1040caf2950 100644
(file)
--- a/
ircd/ircd_string.c
+++ b/
ircd/ircd_string.c
@@
-609,6
+609,8
@@
ipmask_parse(const char *input, struct irc_in_addr *ip, unsigned char *pbits)
while (input[++pos] == '*' || input[pos] == ':') ;
if (input[pos] != '\0' || colon < 8)
return 0;
+ if (part && ii < 8)
+ ip->in6_16[ii++] = htons(part);
if (pbits)
*pbits = ii * 16;
return pos;