Skip to contentSkip to conversation

conntrackd: don't resync expectations if such sync has been disabled

PATCH In review Vincent Bernat 2 participants 2 messages Aug 2, 2012 – Aug 3, 2012 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 conntrackd: don't resync expectations if such sync has been disabled

conntrackd was segfaulting with ExpectationSync set to Off.

---
 src/ctnl.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/ctnl.c +1 -1
index 107cd5d..154b612 100644
@@ -164,7 +164,7 @@ static void do_polling_alarm(struct alarm_block *a, void *data)
 		STATE(mode)->internal->exp.purge();
 
 	nl_send_resync(STATE(resync));
-	nl_send_expect_resync(STATE(resync));
+	if (CONFIG(flags) & CTD_EXPECT) nl_send_expect_resync(STATE(resync));
 	add_alarm(&STATE(polling_alarm), CONFIG(poll_kernel_secs), 0);
 }
 
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 12 lines · Vincent Bernat

conntrackd was segfaulting with ExpectationSync set to Off.

---
 src/ctnl.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/ctnl.c +0 -0
index 107cd5d..154b612 100644

src/ctnl.c static void do_polling_alarm(struct alarm_block *a, void *data) · line 167

Quoted 5 lines
src/ctnl.c +1 -1
@@ -164,7 +164,7 @@ static void do_polling_alarm(struct alarm_block *a, void *data)
 		STATE(mode)->internal->exp.purge();
 
 	nl_send_resync(STATE(resync));
-	nl_send_expect_resync(STATE(resync));
+	if (CONFIG(flags) & CTD_EXPECT) nl_send_expect_resync(STATE(resync));

Applied (with little change to fix coding style).

Thanks Vincent.