]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Ummm why bother setting vars if we are bailing?
authorJim Jagielski <jim@apache.org>
Mon, 3 Nov 2008 23:19:54 +0000 (23:19 +0000)
committerJim Jagielski <jim@apache.org>
Mon, 3 Nov 2008 23:19:54 +0000 (23:19 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@710218 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy.c

index 51efd2b25421889d1ee7b393c14037e27e8cece4..39918ab8454ba17584e44d22d047a0329dcbda4e 100644 (file)
@@ -1405,19 +1405,19 @@ static const char * add_pass_reverse(cmd_parms *cmd, void *dconf, const char *f,
     const char *interp;
 
     if (cmd->path == NULL) {
-        fake = f;
-        real = r;
-        interp = i;
         if (r == NULL || !strcasecmp(r, "interpolate")) {
             return "ProxyPassReverse needs a path when not defined in a location";
         }
+        fake = f;
+        real = r;
+        interp = i;
     }
     else {
-        fake = cmd->path;
-        real = f;
         if (r && strcasecmp(r, "interpolate")) {
             return "ProxyPassReverse can not have a path when defined in a location";
         }
+        fake = cmd->path;
+        real = f;
         interp = r;
     }