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