mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-24 18:38:38 +00:00
netfilter: ctnetlink: fix expectation mask dump
The protocol number is not initialized, so userspace can't interpret the layer 4 data properly. Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
parent
135d01899b
commit
e578756c35
@ -1437,8 +1437,9 @@ ctnetlink_exp_dump_mask(struct sk_buff *skb,
|
||||
struct nlattr *nest_parms;
|
||||
|
||||
memset(&m, 0xFF, sizeof(m));
|
||||
m.src.u.all = mask->src.u.all;
|
||||
memcpy(&m.src.u3, &mask->src.u3, sizeof(m.src.u3));
|
||||
m.src.u.all = mask->src.u.all;
|
||||
m.dst.protonum = tuple->dst.protonum;
|
||||
|
||||
nest_parms = nla_nest_start(skb, CTA_EXPECT_MASK | NLA_F_NESTED);
|
||||
if (!nest_parms)
|
||||
|
Loading…
Reference in New Issue
Block a user