Blame SOURCES/arpwatch-2.1a15-bogon.patch

1b6bc8
--- arpwatch-2.1a15/arpwatch.c.bogon	2007-08-09 13:53:47.000000000 +0200
1b6bc8
+++ arpwatch-2.1a15/arpwatch.c	2007-08-09 13:58:17.000000000 +0200
1b6bc8
@@ -730,11 +730,12 @@ addnet(register const char *str)
1b6bc8
 
1b6bc8
 	/* XXX hack */
1b6bc8
 	n = ntohl(inet_addr(tstr));
1b6bc8
-	while ((n & 0xff000000) == 0) {
1b6bc8
-		n <<= 8;
1b6bc8
-		if (n == 0)
1b6bc8
-			return (0);
1b6bc8
-	}
1b6bc8
+	if (n || width != 32)
1b6bc8
+		while ((n & 0xff000000) == 0) {
1b6bc8
+			n <<= 8;
1b6bc8
+			if (n == 0)
1b6bc8
+				return (0);
1b6bc8
+		}
1b6bc8
 	n = htonl(n);
1b6bc8
 
1b6bc8
 	if (width != 0) {