Blame SOURCES/httpd-2.4.37-r1864000.patch
|
|
85cb4d |
--- a/modules/proxy/mod_proxy_hcheck.c 2019/07/30 13:01:08 1863999
|
|
|
85cb4d |
+++ b/modules/proxy/mod_proxy_hcheck.c 2019/07/30 13:01:21 1864000
|
|
|
85cb4d |
@@ -110,6 +110,10 @@
|
|
|
85cb4d |
if (!worker && !v) {
|
|
|
85cb4d |
return "Bad call to set_worker_hc_param()";
|
|
|
85cb4d |
}
|
|
|
85cb4d |
+ if (!ctx) {
|
|
|
85cb4d |
+ ctx = hc_create_config(p, s);
|
|
|
85cb4d |
+ ap_set_module_config(s->module_config, &proxy_hcheck_module, ctx);
|
|
|
85cb4d |
+ }
|
|
|
85cb4d |
temp = (hc_template_t *)v;
|
|
|
85cb4d |
if (!strcasecmp(key, "hctemplate")) {
|
|
|
85cb4d |
hc_template_t *template;
|
|
|
85cb4d |
@@ -1059,6 +1063,8 @@
|
|
|
85cb4d |
int i;
|
|
|
85cb4d |
sctx_t *ctx = (sctx_t *) ap_get_module_config(r->server->module_config,
|
|
|
85cb4d |
&proxy_hcheck_module);
|
|
|
85cb4d |
+ if (!ctx)
|
|
|
85cb4d |
+ return;
|
|
|
85cb4d |
if (apr_is_empty_table(ctx->conditions))
|
|
|
85cb4d |
return;
|
|
|
85cb4d |
|
|
|
85cb4d |
@@ -1088,6 +1094,8 @@
|
|
|
85cb4d |
int i;
|
|
|
85cb4d |
sctx_t *ctx = (sctx_t *) ap_get_module_config(r->server->module_config,
|
|
|
85cb4d |
&proxy_hcheck_module);
|
|
|
85cb4d |
+ if (!ctx)
|
|
|
85cb4d |
+ return;
|
|
|
85cb4d |
if (apr_is_empty_table(ctx->conditions))
|
|
|
85cb4d |
return;
|
|
|
85cb4d |
|
|
|
85cb4d |
@@ -1111,6 +1119,8 @@
|
|
|
85cb4d |
int i;
|
|
|
85cb4d |
sctx_t *ctx = (sctx_t *) ap_get_module_config(r->server->module_config,
|
|
|
85cb4d |
&proxy_hcheck_module);
|
|
|
85cb4d |
+ if (!ctx)
|
|
|
85cb4d |
+ return 0;
|
|
|
85cb4d |
if (apr_is_empty_table(ctx->conditions))
|
|
|
85cb4d |
return 0;
|
|
|
85cb4d |
|