X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=net%2Fipv4%2Finet_diag.c;h=2746c1fa6417b73af42bfe40206405e456a176ac;hb=dc8e7e3ec60bd5ef7868aa88755e9d4c948dc5cc;hp=2ada17129fce6ac9a7285f6033e30d0a9bc4b98a;hpb=9c7bc451e41abf78b0fd856a9f916f7d39e26297;p=cascardo%2Flinux.git diff --git a/net/ipv4/inet_diag.c b/net/ipv4/inet_diag.c index 2ada17129fce..2746c1fa6417 100644 --- a/net/ipv4/inet_diag.c +++ b/net/ipv4/inet_diag.c @@ -858,7 +858,7 @@ static int inet_diag_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh) nlmsg_len(nlh) < hdrlen) return -EINVAL; - if (nlh->nlmsg_flags & NLM_F_DUMP) { + if ((nlh->nlmsg_flags & NLM_F_DUMP) == NLM_F_DUMP) { if (nlmsg_attrlen(nlh, hdrlen)) { struct nlattr *attr;