o Fix ipfw(8) command line parser bug: "ipfw nat 1 config if" requires an argument.

PR:		bin/119815
Submitted by:	Dierk Sacher
MFC after:	1 week
This commit is contained in:
Maxim Konovalov 2008-01-20 08:31:35 +00:00
parent 85c309021f
commit 8c03c6c023
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=175511

View File

@ -3994,6 +3994,8 @@ config_nat(int ac, char **av)
ac--; av++;
break;
case TOK_IF:
if (ac == 0)
errx(EX_DATAERR, "missing option");
set_addr_dynamic(av[0], n);
ac--; av++;
break;