From: Joe Orton Date: Mon, 21 Jan 2013 15:09:13 +0000 (+0000) Subject: * support/htcacheclean.c (main): Ensure -p was used before attempting X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2f8bcfcfec98d4e58f8f49ead99c02312431a32;p=thirdparty%2Fapache%2Fhttpd.git * support/htcacheclean.c (main): Ensure -p was used before attempting to process URL arguments. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1436401 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/support/htcacheclean.c b/support/htcacheclean.c index f093410ca1f..4150936fbbb 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"); }