netfilter: ipset: Make sure we always return line number on batch
[deliverable/linux.git] / net / netfilter / ipset / ip_set_bitmap_ip.c
index 212005e7d735853f94a52d069d64d88d3cce17d6..7af99c3e5a4daa0e468fa45f8c6701392a0eeb71 100644 (file)
@@ -138,12 +138,12 @@ bitmap_ip_uadt(struct ip_set *set, struct nlattr *tb[],
        struct ip_set_ext ext = IP_SET_INIT_UEXT(set);
        int ret = 0;
 
-       if (unlikely(!tb[IPSET_ATTR_IP]))
-               return -IPSET_ERR_PROTOCOL;
-
        if (tb[IPSET_ATTR_LINENO])
                *lineno = nla_get_u32(tb[IPSET_ATTR_LINENO]);
 
+       if (unlikely(!tb[IPSET_ATTR_IP]))
+               return -IPSET_ERR_PROTOCOL;
+
        ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP], &ip);
        if (ret)
                return ret;
This page took 0.026906 seconds and 5 git commands to generate.