From c5dddb272dbf6bad5c689474d2741829a2def1f0 Mon Sep 17 00:00:00 2001 From: Cy Schubert Date: Thu, 11 Jul 2019 19:36:18 +0000 Subject: [PATCH] Remove a tautological test for adding a rule in the block that adds rules. MFC after: 1 week --- sys/contrib/ipfilter/netinet/fil.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/contrib/ipfilter/netinet/fil.c b/sys/contrib/ipfilter/netinet/fil.c index 640c710dfc1d..0a956238297d 100644 --- a/sys/contrib/ipfilter/netinet/fil.c +++ b/sys/contrib/ipfilter/netinet/fil.c @@ -5110,8 +5110,7 @@ frrequest(softc, unit, req, data, set, makecopy) if (fp->fr_next != NULL) fp->fr_next->fr_pnext = &fp->fr_next; *ftail = fp; - if (addrem == OP_ADD) - ipf_fixskip(ftail, fp, 1); + ipf_fixskip(ftail, fp, 1); fp->fr_icmpgrp = NULL; if (fp->fr_icmphead != -1) {