summaryrefslogtreecommitdiffstats
path: root/sbin/ipfw/ipfw.c
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2001-09-19 15:12:14 +0000
committerru <ru@FreeBSD.org>2001-09-19 15:12:14 +0000
commit3486bb456a49bdd23e6904032d8238cd493e7d28 (patch)
treed3aa55401122dd8dcb74e2e6a3084408339fd6ff /sbin/ipfw/ipfw.c
parente2fc11e60bb4c6ea515a0882954efbbfc2f4b864 (diff)
downloadFreeBSD-src-3486bb456a49bdd23e6904032d8238cd493e7d28.zip
FreeBSD-src-3486bb456a49bdd23e6904032d8238cd493e7d28.tar.gz
Non-decimal ``skipto'' rule numbers are meaningless.
Noticed by: "Marc G. Fournier" <scrappy@hub.org> MFC after: 3 days
Diffstat (limited to 'sbin/ipfw/ipfw.c')
-rw-r--r--sbin/ipfw/ipfw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ipfw/ipfw.c b/sbin/ipfw/ipfw.c
index 33ecc4c..0498172 100644
--- a/sbin/ipfw/ipfw.c
+++ b/sbin/ipfw/ipfw.c
@@ -1788,7 +1788,7 @@ add(int ac, char *av[])
rule.fw_flg |= IP_FW_F_SKIPTO; av++; ac--;
if (!ac)
errx(EX_USAGE, "missing skipto rule number");
- rule.fw_skipto_rule = strtoul(*av, NULL, 0); av++; ac--;
+ rule.fw_skipto_rule = strtoul(*av, NULL, 10); av++; ac--;
} else if ((!strncmp(*av, "deny", strlen(*av))
|| !strncmp(*av, "drop", strlen(*av)))) {
rule.fw_flg |= IP_FW_F_DENY; av++; ac--;
OpenPOWER on IntegriCloud