httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r1436401 - /httpd/httpd/trunk/support/htcacheclean.c
Date Mon, 21 Jan 2013 15:09:13 GMT
Author: jorton
Date: Mon Jan 21 15:09:13 2013
New Revision: 1436401

URL: http://svn.apache.org/viewvc?rev=1436401&view=rev
Log:
* support/htcacheclean.c (main): Ensure -p was used before attempting
  to process URL arguments.

Modified:
    httpd/httpd/trunk/support/htcacheclean.c

Modified: httpd/httpd/trunk/support/htcacheclean.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/support/htcacheclean.c?rev=1436401&r1=1436400&r2=1436401&view=diff
==============================================================================
--- httpd/httpd/trunk/support/htcacheclean.c (original)
+++ httpd/httpd/trunk/support/htcacheclean.c Mon Jan 21 15:09:13 2013
@@ -1620,6 +1620,10 @@ int main(int argc, const char * const ar
         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 ar
          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");
     }



Mime
View raw message