Date: Wed, 24 Mar 2010 23:06:17 +0000 (UTC) From: Luigi Rizzo <luigi@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r205631 - head/sbin/ipfw Message-ID: <201003242306.o2ON6HWp042173@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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]);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003242306.o2ON6HWp042173>