svn commit: r320143 - head/contrib/ipfilter/tools
Cy Schubert
cy at FreeBSD.org
Tue Jun 20 12:31:59 UTC 2017
Author: cy
Date: Tue Jun 20 12:31:58 2017
New Revision: 320143
URL: https://svnweb.freebsd.org/changeset/base/320143
Log:
Flag poolnodecommand() (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 Tue Jun 20 11:11:42 2017 (r320142)
+++ head/contrib/ipfilter/tools/ippool.c Tue Jun 20 12:31:58 2017 (r320143)
@@ -210,7 +210,13 @@ poolnodecommand(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 (argv[optind] != NULL && ipset == 0) {
if (setnodeaddr(type, role, ptr, argv[optind]) == 0)
More information about the svn-src-head
mailing list