-
- Downloads
netlink: test for all flags of the NLM_F_DUMP composite
Due to NLM_F_DUMP is composed of two bits, NLM_F_ROOT | NLM_F_MATCH, when doing "if (x & NLM_F_DUMP)", it tests for _either_ of the bits being set. Because NLM_F_MATCH's value overlaps with NLM_F_EXCL, non-dump requests with NLM_F_EXCL set are mistaken as dump requests. Substitute the condition to test for _all_ bits being set. Signed-off-by:Jan Engelhardt <jengelh@medozas.de> Acked-by:
Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- net/core/rtnetlink.c 1 addition, 1 deletionnet/core/rtnetlink.c
- net/ipv4/inet_diag.c 1 addition, 1 deletionnet/ipv4/inet_diag.c
- net/netfilter/nf_conntrack_netlink.c 2 additions, 2 deletionsnet/netfilter/nf_conntrack_netlink.c
- net/netlink/genetlink.c 1 addition, 1 deletionnet/netlink/genetlink.c
- net/xfrm/xfrm_user.c 1 addition, 1 deletionnet/xfrm/xfrm_user.c
Loading
Please register or sign in to comment