]> Pileus Git - ~andy/linux/blobdiff - net/netfilter/nfnetlink_log.c
netfilter: nfnetlink_log: fix per-rule qthreshold override
[~andy/linux] / net / netfilter / nfnetlink_log.c
index fa49dc7fe100ffb0cd7a48e1b626c87019903197..580b837e44ddc0657d79269cd2ee24bcf94d9d04 100644 (file)
@@ -590,8 +590,10 @@ nfulnl_log_packet(u_int8_t pf,
 
        qthreshold = inst->qthreshold;
        /* per-rule qthreshold overrides per-instance */
-       if (qthreshold > li->u.ulog.qthreshold)
-               qthreshold = li->u.ulog.qthreshold;
+       if (li->u.ulog.qthreshold)
+               if (qthreshold > li->u.ulog.qthreshold)
+                       qthreshold = li->u.ulog.qthreshold;
+
 
        switch (inst->copy_mode) {
        case NFULNL_COPY_META: