|
@@ -272,7 +272,7 @@ hash_ipportnet4_uadt(struct ip_set *set, struct nlattr *tb[],
|
|
if (ip > ip_to)
|
|
if (ip > ip_to)
|
|
swap(ip, ip_to);
|
|
swap(ip, ip_to);
|
|
} else if (tb[IPSET_ATTR_CIDR]) {
|
|
} else if (tb[IPSET_ATTR_CIDR]) {
|
|
- u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]);
|
|
|
|
|
|
+ cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]);
|
|
|
|
|
|
if (!cidr || cidr > 32)
|
|
if (!cidr || cidr > 32)
|
|
return -IPSET_ERR_INVALID_CIDR;
|
|
return -IPSET_ERR_INVALID_CIDR;
|