From 45fd7e506671b45f3ecbb47dd123cf1900c3143d Mon Sep 17 00:00:00 2001 From: luigi Date: Wed, 24 Mar 2010 23:06:16 +0000 Subject: [PATCH] fix another bug in "ipfw set N ..." Submitted by: Marcin Wisnicki --- sbin/ipfw/ipfw2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/ipfw/ipfw2.c b/sbin/ipfw/ipfw2.c index 1ab827f3e268..9e212fc012a3 100644 --- a/sbin/ipfw/ipfw2.c +++ b/sbin/ipfw/ipfw2.c @@ -2656,7 +2656,7 @@ ipfw_add(char *av[]) } /* [set N] -- set number (0..RESVD_SET), optional */ - if (av[0] && !av[1] && _substrcmp(*av, "set") == 0) { + if (av[0] && av[1] && _substrcmp(*av, "set") == 0) { int set = strtoul(av[1], NULL, 10); if (set < 0 || set > RESVD_SET) errx(EX_DATAERR, "illegal set %s", av[1]);