* support/htcacheclean.c (main): Ensure -p was used before attempting
to process URL arguments.
Reviewed by: jorton, rpluem, rjung
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@
1436846 13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.4.4
+ *) htcacheclean: Fix potential segfault if "-p" is omitted. [Joe Orton]
+
*) mod_proxy_http: Honour special value 0 (unlimited) of LimitRequestBody
PR 54435. [Pavel Mateja <pavel netsafe.cz>]
usage(NULL);
}
+ if (!proxypath) {
+ usage("Option -p must be specified");
+ }
+
if (o->ind < argc) {
int deleted = 0;
int error = 0;
usage("Option -i cannot be used without -d");
}
- if (!proxypath) {
- usage("Option -p must be specified");
- }
-
if (!listurls && max <= 0 && inodes <= 0) {
usage("At least one of option -l or -L must be greater than zero");
}