diff options
author | Patrick McHardy <kaber@trash.net> | 2008-04-14 05:21:01 -0400 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-04-14 05:21:01 -0400 |
commit | ef1a5a50bbd509b8697dcd4d13017e9e0053867b (patch) | |
tree | c278eef43ffd756b0f09589ce1dd9310a50f7af1 | |
parent | e7bfd0a1a6c8f82977253dab19be9d9979c1ec1b (diff) |
[NETFILTER]: nf_conntrack: fix incorrect check for expectations
The expectation classes changed help->expectations to an array,
fix use as scalar value.
Signed-off-by: Patrick McHardy <kaber@trash.net>
-rw-r--r-- | net/netfilter/nf_conntrack_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nf_conntrack_core.c b/net/netfilter/nf_conntrack_core.c index 351237399e27..4eac65c74ed0 100644 --- a/net/netfilter/nf_conntrack_core.c +++ b/net/netfilter/nf_conntrack_core.c | |||
@@ -766,7 +766,7 @@ void nf_conntrack_alter_reply(struct nf_conn *ct, | |||
766 | nf_ct_dump_tuple(newreply); | 766 | nf_ct_dump_tuple(newreply); |
767 | 767 | ||
768 | ct->tuplehash[IP_CT_DIR_REPLY].tuple = *newreply; | 768 | ct->tuplehash[IP_CT_DIR_REPLY].tuple = *newreply; |
769 | if (ct->master || (help && help->expecting != 0)) | 769 | if (ct->master || (help && !hlist_empty(&help->expectations))) |
770 | return; | 770 | return; |
771 | 771 | ||
772 | rcu_read_lock(); | 772 | rcu_read_lock(); |