netfilter: xt_CT: fix wrong checking in the timeout assignment path
[linux-flexiantxendom0-3.2.10.git] / net / netfilter / xt_CT.c
index 59530e9..3746d8b 100644 (file)
@@ -227,7 +227,7 @@ static int xt_ct_tg_check_v1(const struct xt_tgchk_param *par)
        }
 
 #ifdef CONFIG_NF_CONNTRACK_TIMEOUT
-       if (info->timeout) {
+       if (info->timeout[0]) {
                typeof(nf_ct_timeout_find_get_hook) timeout_find_get;
                struct nf_conn_timeout *timeout_ext;