提交 019f2c55 编写于 作者: D Dmitry Kozlov

ippool: fixed parsing /32 ranges

上级 e29cf8ad
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册