Loading net/netfilter/nfnetlink.c +6 −4 Original line number Diff line number Diff line Loading @@ -321,10 +321,12 @@ replay: nlh = nlmsg_hdr(skb); err = 0; if (nlmsg_len(nlh) < sizeof(struct nfgenmsg) || skb->len < nlh->nlmsg_len) { err = -EINVAL; goto ack; if (nlh->nlmsg_len < NLMSG_HDRLEN || skb->len < nlh->nlmsg_len || nlmsg_len(nlh) < sizeof(struct nfgenmsg)) { nfnl_err_reset(&err_list); success = false; goto done; } /* Only requests are handled by the kernel */ Loading Loading
net/netfilter/nfnetlink.c +6 −4 Original line number Diff line number Diff line Loading @@ -321,10 +321,12 @@ replay: nlh = nlmsg_hdr(skb); err = 0; if (nlmsg_len(nlh) < sizeof(struct nfgenmsg) || skb->len < nlh->nlmsg_len) { err = -EINVAL; goto ack; if (nlh->nlmsg_len < NLMSG_HDRLEN || skb->len < nlh->nlmsg_len || nlmsg_len(nlh) < sizeof(struct nfgenmsg)) { nfnl_err_reset(&err_list); success = false; goto done; } /* Only requests are handled by the kernel */ Loading