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