Skip to contentSkip to conversation

Fix crash when using NFCT with hash_enable=0.

PATCH Applied Eric Leblond 2 participants 2 messages Jun 4, 2008 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix crash when using NFCT with hash_enable=0.

From: regit <[email protected]>

This patch fixes NFCT when hash_enable is 0. Limitation of treatment to NFCT_DESTROY message type causes usage of the hashtable function and hence a crash because it is not initiated.

---
 input/flow/ulogd_inpflow_NFCT.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
input/flow/ulogd_inpflow_NFCT.c +1 -1
index dfb58d5..2a44780 100644
@@ -625,7 +625,7 @@ static int event_handler(enum nf_conntrack_msg_type type,
 		.ct = ct,
 	};
 
-	if (!usehash_ce(upi->config_kset).u.value && type == NFCT_T_DESTROY) {
+	if (!usehash_ce(upi->config_kset).u.value) {
 		switch(type) {
 		case NFCT_T_NEW:
 			gettimeofday(&tmp.time[START], NULL);
Signature · 1 line
1.5.5.1
#1 lore raw
Quoted 7 lines · Eric Leblond

From: regit <[email protected]>

This patch fixes NFCT when hash_enable is 0. Limitation of treatment to NFCT_DESTROY message type causes usage of the hashtable function and hence a crash because it is not initiated.

Applied, thanks.