aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/netfilter/nf_conntrack_expect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/netfilter/nf_conntrack_expect.c b/net/netfilter/nf_conntrack_expect.c
index d6ace69d57dc..4b2e1fb28bb4 100644
--- a/net/netfilter/nf_conntrack_expect.c
+++ b/net/netfilter/nf_conntrack_expect.c
@@ -410,7 +410,7 @@ static inline int __nf_ct_expect_check(struct nf_conntrack_expect *expect)
410 struct net *net = nf_ct_exp_net(expect); 410 struct net *net = nf_ct_exp_net(expect);
411 struct hlist_node *next; 411 struct hlist_node *next;
412 unsigned int h; 412 unsigned int h;
413 int ret = 1; 413 int ret = 0;
414 414
415 if (!master_help) { 415 if (!master_help) {
416 ret = -ESHUTDOWN; 416 ret = -ESHUTDOWN;
@@ -460,7 +460,7 @@ int nf_ct_expect_related_report(struct nf_conntrack_expect *expect,
460 460
461 spin_lock_bh(&nf_conntrack_expect_lock); 461 spin_lock_bh(&nf_conntrack_expect_lock);
462 ret = __nf_ct_expect_check(expect); 462 ret = __nf_ct_expect_check(expect);
463 if (ret <= 0) 463 if (ret < 0)
464 goto out; 464 goto out;
465 465
466 nf_ct_expect_insert(expect); 466 nf_ct_expect_insert(expect);