Author: luigi
Date: Wed Mar 24 23:08:25 2010
New Revision: 205632
URL: http://svn.freebsd.org/changeset/base/205632

Log:
  fix handling of "ipfw set N ..."
  
  Submitted by: Marcin Wisnicki

Modified:
  stable/8/sbin/ipfw/ipfw2.c

Modified: stable/8/sbin/ipfw/ipfw2.c
==============================================================================
--- stable/8/sbin/ipfw/ipfw2.c  Wed Mar 24 23:06:16 2010        (r205631)
+++ stable/8/sbin/ipfw/ipfw2.c  Wed Mar 24 23:08:25 2010        (r205632)
@@ -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]);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to