svn commit: r353086 - stable/11/contrib/ipfilter/tools
Cy Schubert
cy at FreeBSD.org
Fri Oct 4 02:01:24 UTC 2019
Author: cy
Date: Fri Oct 4 02:01:23 2019
New Revision: 353086
URL: https://svnweb.freebsd.org/changeset/base/353086
Log:
MFC r320143:
Flag poolnodecommand() (ippool -a and ippool -r) command line syntax
errors.
Modified:
stable/11/contrib/ipfilter/tools/ippool.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/contrib/ipfilter/tools/ippool.c
==============================================================================
--- stable/11/contrib/ipfilter/tools/ippool.c Fri Oct 4 02:00:15 2019 (r353085)
+++ stable/11/contrib/ipfilter/tools/ippool.c Fri Oct 4 02:01:23 2019 (r353086)
@@ -204,7 +204,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-stable-11
mailing list