Remove coredump when running "ipfw pipe" without more arguments.

PR: 8937
This commit is contained in:
Luigi Rizzo 1998-12-27 11:23:05 +00:00
parent 5647c79de5
commit d120b1c1fc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=42073

View File

@ -16,7 +16,7 @@
*
* NEW command line interface for IP firewall facility
*
* $Id: ipfw.c,v 1.62 1998/12/07 05:54:37 archie Exp $
* $Id: ipfw.c,v 1.63 1998/12/14 18:43:03 luigi Exp $
*
*/
@ -1386,6 +1386,9 @@ ipfw_main(ac,av)
ac-- ;
av++ ;
}
if (!ac) {
show_usage("pipe requires arguments");
}
/* allow argument swapping */
if (ac > 1 && *av[0]>='0' && *av[0]<='9') {
char *p = av[0] ;