summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorJoe Orton <jorton@apache.org>2013-01-22 11:50:45 +0000
committerJoe Orton <jorton@apache.org>2013-01-22 11:50:45 +0000
commitaaaa5a087fe5916c69084a7627bb95fe8aa097dc (patch)
tree8c8470d1fcaffa1c9c4a8b1bc8ab5e85b0059226 /support
parent5160a641c380813b3c1b86842fd24d56a2ec18c2 (diff)
downloadhttpd-aaaa5a087fe5916c69084a7627bb95fe8aa097dc.tar.gz
Merge 1436401 from trunk:
* 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
Diffstat (limited to 'support')
-rw-r--r--support/htcacheclean.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/support/htcacheclean.c b/support/htcacheclean.c
index f093410ca1..4150936fbb 100644
--- a/support/htcacheclean.c
+++ b/support/htcacheclean.c
@@ -1620,6 +1620,10 @@ int main(int argc, const char * const argv[])
usage(NULL);
}
+ if (!proxypath) {
+ usage("Option -p must be specified");
+ }
+
if (o->ind < argc) {
int deleted = 0;
int error = 0;
@@ -1671,10 +1675,6 @@ int main(int argc, const char * const argv[])
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");
}