Merge remote-tracking branch 'omap_dss2/for-next'
[deliverable/linux.git] / net / netfilter / xt_conntrack.c
index 188404b9b002f1a8ef875ceb3a7aebddb13c6c8e..a3b8f697cfc5a21fd92b048dc18396aa8de1a471 100644 (file)
@@ -233,10 +233,8 @@ conntrack_mt(const struct sk_buff *skb, struct xt_action_param *par,
                return false;
 
        if (info->match_flags & XT_CONNTRACK_EXPIRES) {
-               unsigned long expires = 0;
+               unsigned long expires = nf_ct_expires(ct) / HZ;
 
-               if (timer_pending(&ct->timeout))
-                       expires = (ct->timeout.expires - jiffies) / HZ;
                if ((expires >= info->expires_min &&
                    expires <= info->expires_max) ^
                    !(info->invert_flags & XT_CONNTRACK_EXPIRES))
This page took 0.024783 seconds and 5 git commands to generate.