summaryrefslogtreecommitdiff
path: root/accel-pppd/extra
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2017-12-20 11:43:31 +0300
committerDmitry Kozlov <xeb@mail.ru>2017-12-20 11:43:31 +0300
commit019f2c557d066070217a5cc873fd078bf3b6400d (patch)
treed54c785f010ee800e7d901d0ec6d315cee92331b /accel-pppd/extra
parente29cf8ad4df5de99137bc39d63e591bcb45cda29 (diff)
downloadaccel-ppp-019f2c557d066070217a5cc873fd078bf3b6400d.tar.gz
accel-ppp-019f2c557d066070217a5cc873fd078bf3b6400d.zip
ippool: fixed parsing /32 ranges
Diffstat (limited to 'accel-pppd/extra')
-rw-r--r--accel-pppd/extra/ippool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/extra/ippool.c b/accel-pppd/extra/ippool.c
index 616b156..0c0831c 100644
--- a/accel-pppd/extra/ippool.c
+++ b/accel-pppd/extra/ippool.c
@@ -127,7 +127,7 @@ static int parse1(const char *str, uint32_t *begin, uint32_t *end)
*begin = (f1 << 24) | (f2 << 16) | (f3 << 8) | f4;
- m = m == 32 ? 0xffffffff : ((1 << (32 - m)) - 1);
+ m = m == 32 ? 0 : ((1 << (32 - m)) - 1);
*end = *begin | m;
return 0;