Selaa lähdekoodia

[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>
Patrick McHardy 17 vuotta sitten
vanhempi
commit
ef1a5a50bb
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      net/netfilter/nf_conntrack_core.c

+ 1 - 1
net/netfilter/nf_conntrack_core.c

@@ -766,7 +766,7 @@ void nf_conntrack_alter_reply(struct nf_conn *ct,
 	nf_ct_dump_tuple(newreply);
 	nf_ct_dump_tuple(newreply);
 
 
 	ct->tuplehash[IP_CT_DIR_REPLY].tuple = *newreply;
 	ct->tuplehash[IP_CT_DIR_REPLY].tuple = *newreply;
-	if (ct->master || (help && help->expecting != 0))
+	if (ct->master || (help && !hlist_empty(&help->expectations)))
 		return;
 		return;
 
 
 	rcu_read_lock();
 	rcu_read_lock();