/[svn]/ircd-hybrid/trunk/src/hostmask.c
ViewVC logotype

Diff of /ircd-hybrid/trunk/src/hostmask.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1785 by michael, Fri Nov 16 19:41:52 2012 UTC revision 1786 by michael, Mon Jan 28 19:30:26 2013 UTC
# Line 202  try_parse_v4_netmask(const char *text, s Line 202  try_parse_v4_netmask(const char *text, s
202        char *after;        char *after;
203        bits = strtoul(p + 1, &after, 10);        bits = strtoul(p + 1, &after, 10);
204    
205        if (!bits || *after)        if (bits < 0 || *after)
206          return HM_HOST;          return HM_HOST;
207        if (bits > n * 8)        if (bits > n * 8)
208          return HM_HOST;          return HM_HOST;

Legend:
Removed from v.1785  
changed lines
  Added in v.1786

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28