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