From a552387e52d96eaca977ff84bf5c57eb30eadf48 Mon Sep 17 00:00:00 2001 From: "Alexander V. Chernikov" Date: Mon, 13 Oct 2014 11:04:01 +0000 Subject: [PATCH] Fix zeroing individual entries via ipfw(8). Found by: Oleg Ginzburg --- sbin/ipfw/ipfw2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sbin/ipfw/ipfw2.c b/sbin/ipfw/ipfw2.c index 6b6424c9981b..9a00fd335e41 100644 --- a/sbin/ipfw/ipfw2.c +++ b/sbin/ipfw/ipfw2.c @@ -4799,6 +4799,7 @@ ipfw_zero(int ac, char *av[], int optname) } else { errx(EX_USAGE, "invalid rule number ``%s''", *av); } + av++; ac--; } if (failed != EX_OK) exit(failed);