]> git.ipfire.org Git - thirdparty/ulogd2.git/commitdiff
Fix crash when using NFCT with hash_enable=0.
authorregit <regit@ghlodit.inl.fr>
Wed, 4 Jun 2008 13:19:05 +0000 (15:19 +0200)
committerPatrick McHardy <kaber@trash.net>
Wed, 4 Jun 2008 13:19:05 +0000 (15:19 +0200)
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.

Signed-off-by: regit <regit@ghlodit.inl.fr>
Signed-off-by: Patrick McHardy <kaber@trash.net>
input/flow/ulogd_inpflow_NFCT.c

index dfb58d5d73e24f4cb636d924225266c887427884..2a44780f3ea538f3d02fafc20e4d5713dd2a8e92 100644 (file)
@@ -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);