diff options
-rw-r--r-- | accel-pppd/iprange.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/accel-pppd/iprange.c b/accel-pppd/iprange.c index d2b896f1..593f493a 100644 --- a/accel-pppd/iprange.c +++ b/accel-pppd/iprange.c @@ -117,8 +117,7 @@ static int parse_iprange(const char *str, struct iprange_t **range) if (prefix_len == 0) goto disable; - mask = UINT32_MAX << (32 - prefix_len); - + mask = INADDR_BROADCAST << (32 - prefix_len); if (ipmin != (ipmin & mask)) { char buf[INET_ADDRSTRLEN] = { 0 }; |