Blame SOURCES/arpwatch-2.1a15-bogon.patch

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