diff options
author | Harald Welte <laforge@netfilter.org> | 2005-08-09 23:03:22 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2005-08-29 18:39:10 -0400 |
commit | bd9a26b7f2ee7567571bb5b7acc1a256c544a0dd (patch) | |
tree | fd17d11fbbedf67f6e5edde8ce76d18a3f6230f2 /net | |
parent | 88aa0429048d08c18f2772782588f953bbbd79be (diff) |
[NETFILTER]: fix ctnetlink 'create_expect' parsing
There was a stupid copy+paste mistake where we parse the MASK nfattr into
the "tuple" variable instead of the "mask" variable. This patch fixes it.
Thanks to Pablo Neira.
Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/netfilter/ip_conntrack_netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/netfilter/ip_conntrack_netlink.c b/net/ipv4/netfilter/ip_conntrack_netlink.c index 0ab2d7df6bc4..23f18f6a5535 100644 --- a/net/ipv4/netfilter/ip_conntrack_netlink.c +++ b/net/ipv4/netfilter/ip_conntrack_netlink.c | |||
@@ -1388,7 +1388,7 @@ ctnetlink_create_expect(struct nfattr *cda[]) | |||
1388 | err = ctnetlink_parse_tuple(cda, &tuple, CTA_EXPECT_TUPLE); | 1388 | err = ctnetlink_parse_tuple(cda, &tuple, CTA_EXPECT_TUPLE); |
1389 | if (err < 0) | 1389 | if (err < 0) |
1390 | return err; | 1390 | return err; |
1391 | err = ctnetlink_parse_tuple(cda, &tuple, CTA_EXPECT_MASK); | 1391 | err = ctnetlink_parse_tuple(cda, &mask, CTA_EXPECT_MASK); |
1392 | if (err < 0) | 1392 | if (err < 0) |
1393 | return err; | 1393 | return err; |
1394 | 1394 | ||