svn commit: r319821 - head/contrib/ipfilter/tools
Cy Schubert
cy at FreeBSD.org
Sun Jun 11 04:00:28 UTC 2017
Author: cy
Date: Sun Jun 11 04:00:26 2017
New Revision: 319821
URL: https://svnweb.freebsd.org/changeset/base/319821
Log:
Identify poolstats() (ippool -s) command line syntax errors.
Modified:
head/contrib/ipfilter/tools/ippool.c
Modified: head/contrib/ipfilter/tools/ippool.c
==============================================================================
--- head/contrib/ipfilter/tools/ippool.c Sun Jun 11 03:56:13 2017 (r319820)
+++ head/contrib/ipfilter/tools/ippool.c Sun Jun 11 04:00:26 2017 (r319821)
@@ -451,7 +451,13 @@ poolstats(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, "poolstats: opts = %#x\n", opts);
More information about the svn-src-all
mailing list