ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.0.x/src/hostmask.c
(Generate patch)

Comparing ircd-hybrid/branches/8.0.x/src/hostmask.c (file contents):
Revision 1786 by michael, Sun Nov 4 17:58:25 2012 UTC vs.
Revision 1787 by michael, Mon Jan 28 19:31:33 2013 UTC

# Line 202 | Line 202 | try_parse_v4_netmask(const char *text, s
202        char *after;
203        bits = strtoul(p + 1, &after, 10);
204  
205 <      if (!bits || *after)
205 >      if (bits < 0 || *after)
206          return HM_HOST;
207        if (bits > n * 8)
208          return HM_HOST;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines