Author: cy
Date: Mon Jun 19 12:33:22 2017
New Revision: 320095
URL: https://svnweb.freebsd.org/changeset/base/320095
Log:
Flag poolcommand() (ippool -A and ippool -R) command line syntax errors.
Modified:
head/contrib/ipfilter/tools/ippool.c
Modified: head/contrib/ipfilter/tools/ippool.c
==============================================================================
--- head/contrib/ipfilter/tools/ippool.c Mon Jun 19 07:15:47 2017
(r320094)
+++ head/contrib/ipfilter/tools/ippool.c Mon Jun 19 12:33:22 2017
(r320095)
@@ -297,7 +297,13 @@ poolcommand(remove, argc, argv)
case 'v' :
opts |= OPT_VERBOSE;
break;
+ default :
+ usage(argv[0]);
+ break; /* keep compiler happy */
}
+
+ if (argc - 1 - optind > 0)
+ usage(argv[0]);
if (opts & OPT_DEBUG)
fprintf(stderr, "poolcommand: opts = %#x\n", opts);
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"