fix handling of "ipfw set N ..."
Submitted by: Marcin Wisnicki
This commit is contained in:
parent
51aa112a4c
commit
8c5156f3ef
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/8/; revision=205632
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user