From 5419913630ace8c8eec87b2b3e18f7fa760aaa8a Mon Sep 17 00:00:00 2001 From: Packit Date: Oct 23 2020 13:33:12 +0000 Subject: Apply patch arpwatch-2.1a15-bogon.patch patch_name: arpwatch-2.1a15-bogon.patch present_in_specfile: true --- diff --git a/arpwatch.c b/arpwatch.c index c570ce8..d2500f7 100644 --- a/arpwatch.c +++ b/arpwatch.c @@ -730,11 +730,12 @@ addnet(register const char *str) /* XXX hack */ n = ntohl(inet_addr(tstr)); - while ((n & 0xff000000) == 0) { - n <<= 8; - if (n == 0) - return (0); - } + if (n || width != 32) + while ((n & 0xff000000) == 0) { + n <<= 8; + if (n == 0) + return (0); + } n = htonl(n); if (width != 0) {