Skip to content

Commit 77b1a6b

Browse files
committed
sync from source of module
1 parent b935e1b commit 77b1a6b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ngx_http_upstream_check_module.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4572,5 +4572,12 @@ ngx_http_upstream_check_init_shm_peer(ngx_http_upstream_check_peer_shm_t *psh,
45724572
static ngx_int_t
45734573
ngx_http_upstream_check_init_process(ngx_cycle_t *cycle)
45744574
{
4575+
ngx_http_upstream_check_main_conf_t *ucmcf;
4576+
4577+
ucmcf = ngx_http_cycle_get_module_main_conf(cycle, ngx_http_upstream_check_module);
4578+
if (ucmcf == NULL) {
4579+
return NGX_OK;
4580+
}
4581+
45754582
return ngx_http_upstream_check_add_timers(cycle);
45764583
}

0 commit comments

Comments
 (0)