diff options
author | Sergey Popovich <popovich_sergei@mail.ua> | 2015-05-02 19:28:15 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-05-13 13:25:47 +0200 |
commit | 728a7e6903af6f901eeff9a2d9ffb06d55e9b1e4 (patch) | |
tree | 06060bc5158b7eaea4191783e786767529e2e751 /net/netfilter/ipset/ip_set_hash_mac.c | |
parent | netfilter: ipset: Use HOST_MASK literal to represent host address CIDR len (diff) | |
download | linux-dev-728a7e6903af6f901eeff9a2d9ffb06d55e9b1e4.tar.xz linux-dev-728a7e6903af6f901eeff9a2d9ffb06d55e9b1e4.zip |
netfilter: ipset: Return bool values instead of int
Signed-off-by: Sergey Popovich <popovich_sergei@mail.ua>
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/ipset/ip_set_hash_mac.c')
-rw-r--r-- | net/netfilter/ipset/ip_set_hash_mac.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/net/netfilter/ipset/ip_set_hash_mac.c b/net/netfilter/ipset/ip_set_hash_mac.c index 2b96234212fa..3614683e690c 100644 --- a/net/netfilter/ipset/ip_set_hash_mac.c +++ b/net/netfilter/ipset/ip_set_hash_mac.c @@ -52,7 +52,12 @@ hash_mac4_data_equal(const struct hash_mac4_elem *e1, static inline bool hash_mac4_data_list(struct sk_buff *skb, const struct hash_mac4_elem *e) { - return nla_put(skb, IPSET_ATTR_ETHER, ETH_ALEN, e->ether); + if (nla_put(skb, IPSET_ATTR_ETHER, ETH_ALEN, e->ether)) + goto nla_put_failure; + return false; + +nla_put_failure: + return true; } static inline void |