diff options
author | Luigi Rizzo <luigi@FreeBSD.org> | 2010-03-24 23:06:16 +0000 |
---|---|---|
committer | Luigi Rizzo <luigi@FreeBSD.org> | 2010-03-24 23:06:16 +0000 |
commit | c72c2330d081b2edf2d1dd56ce9efc8e946745a7 (patch) | |
tree | c1350aef73705e3e5f02abf5e4c834d9f1b3be32 /sbin | |
parent | ebbcc89c45c6731f1d37bfc365d523ed214f814d (diff) | |
download | src-c72c2330d081b2edf2d1dd56ce9efc8e946745a7.tar.gz src-c72c2330d081b2edf2d1dd56ce9efc8e946745a7.zip |
fix another bug in "ipfw set N ..."
Submitted by: Marcin Wisnicki
Notes
Notes:
svn path=/head/; revision=205631
Diffstat (limited to 'sbin')
-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 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]); |