summaryrefslogtreecommitdiffstats
path: root/sbin/ipfw/ipfw2.c
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2010-03-24 23:06:16 +0000
committerluigi <luigi@FreeBSD.org>2010-03-24 23:06:16 +0000
commit45fd7e506671b45f3ecbb47dd123cf1900c3143d (patch)
treec1350aef73705e3e5f02abf5e4c834d9f1b3be32 /sbin/ipfw/ipfw2.c
parent36597750de3270e054dafdb4dbcfba912ecd44eb (diff)
downloadFreeBSD-src-45fd7e506671b45f3ecbb47dd123cf1900c3143d.zip
FreeBSD-src-45fd7e506671b45f3ecbb47dd123cf1900c3143d.tar.gz
fix another bug in "ipfw set N ..."
Submitted by: Marcin Wisnicki
Diffstat (limited to 'sbin/ipfw/ipfw2.c')
-rw-r--r--sbin/ipfw/ipfw2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ipfw/ipfw2.c b/sbin/ipfw/ipfw2.c
index 1ab827f..9e212fc 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]);
OpenPOWER on IntegriCloud