41a6c3
# ./pullrev.sh 1737363
41a6c3
http://svn.apache.org/viewvc?view=revision&revision=1737363
41a6c3
41a6c3
--- httpd-2.4.6/modules/proxy/mod_proxy_express.c
41a6c3
+++ httpd-2.4.6/modules/proxy/mod_proxy_express.c
41a6c3
@@ -145,16 +145,14 @@
41a6c3
     key.dsize = strlen(key.dptr);
41a6c3
 
41a6c3
     rv = apr_dbm_fetch(db, key, &val;;
41a6c3
+    if (rv == APR_SUCCESS) {
41a6c3
+        backend = apr_pstrmemdup(r->pool, val.dptr, val.dsize);
41a6c3
+    }
41a6c3
     apr_dbm_close(db);
41a6c3
-    if (rv != APR_SUCCESS) {
41a6c3
+    if (rv != APR_SUCCESS || !backend) {
41a6c3
         return DECLINED;
41a6c3
     }
41a6c3
 
41a6c3
-    backend = apr_pstrmemdup(r->pool, val.dptr, val.dsize);
41a6c3
-    if (!backend) {
41a6c3
-        return DECLINED;
41a6c3
-    }
41a6c3
-
41a6c3
     ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(01004)
41a6c3
                   "proxy_express: found %s -> %s", name, backend);
41a6c3
     r->filename = apr_pstrcat(r->pool, "proxy:", backend, r->uri, NULL);