svn commit: r205631 - head/sbin/ipfw
Luigi Rizzo
luigi at FreeBSD.org
Wed Mar 24 23:06:18 UTC 2010
Author: luigi
Date: Wed Mar 24 23:06:16 2010
New Revision: 205631
URL: http://svn.freebsd.org/changeset/base/205631
Log:
fix another bug in "ipfw set N ..."
Submitted by: Marcin Wisnicki
Modified:
head/sbin/ipfw/ipfw2.c
Modified: head/sbin/ipfw/ipfw2.c
==============================================================================
--- head/sbin/ipfw/ipfw2.c Wed Mar 24 20:20:28 2010 (r205630)
+++ head/sbin/ipfw/ipfw2.c Wed Mar 24 23:06:16 2010 (r205631)
@@ -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]);
More information about the svn-src-all
mailing list