]> granicus.if.org Git - apache/commitdiff
Remove useless test.
authorJean-Frederic Clere <jfclere@apache.org>
Thu, 27 Mar 2008 14:44:19 +0000 (14:44 +0000)
committerJean-Frederic Clere <jfclere@apache.org>
Thu, 27 Mar 2008 14:44:19 +0000 (14:44 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@641837 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_ajp.c

index b1c0615bd1d15e852abb00f3a6e2462aa1686f42..47f07b12983eff7853d7369e2980f7920ab9f5d3 100644 (file)
@@ -586,16 +586,14 @@ static int proxy_ajp_handler(request_rec *r, proxy_worker *worker,
                  "proxy: AJP: serving URL %s", url);
 
     /* create space for state information */
-    if (!backend) {
-        status = ap_proxy_acquire_connection(scheme, &backend, worker,
-                                             r->server);
-        if (status != OK) {
-            if (backend) {
-                backend->close = 1;
-                ap_proxy_release_connection(scheme, backend, r->server);
-            }
-            return status;
+    status = ap_proxy_acquire_connection(scheme, &backend, worker,
+                                         r->server);
+    if (status != OK) {
+        if (backend) {
+            backend->close = 1;
+            ap_proxy_release_connection(scheme, backend, r->server);
         }
+        return status;
     }
 
     backend->is_ssl = 0;