diff options
author | luigi <luigi@FreeBSD.org> | 2010-03-24 23:08:25 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2010-03-24 23:08:25 +0000 |
commit | c041d56cdf53775a30c5c413775aeef58662fab8 (patch) | |
tree | 65f15db73c955415520c126bf9e47de79f00e472 | |
parent | 2c98c8cd426c5bacf91b79e65c2575b342665428 (diff) | |
download | FreeBSD-src-c041d56cdf53775a30c5c413775aeef58662fab8.zip FreeBSD-src-c041d56cdf53775a30c5c413775aeef58662fab8.tar.gz |
fix handling of "ipfw set N ..."
Submitted by: Marcin Wisnicki
-rw-r--r-- | sbin/ipfw/ipfw2.c | 2 |
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]); |