Sophie

Sophie

distrib > Mageia > 4 > i586 > media > core-release-src > by-pkgid > 06b05ee1388523f83be4fc73d3bd67fa > files > 2

ircd-hybrid-7.2.3-17.mga4.src.rpm

diff --git a/src/hostmask.c b/src/hostmask.c
index 3c06b68..5937843 100644
--- a/src/hostmask.c
+++ b/src/hostmask.c
@@ -198,7 +198,7 @@ try_parse_v4_netmask(const char *text, struct irc_ssaddr *addr, int *b)
     {
       char *after;
       bits = strtoul(p + 1, &after, 10);
-      if (!bits || *after)
+      if (bits < 0 || *after)
         return HM_HOST;
       if (bits > n * 8)
         return HM_HOST;