Skip to content

Commit

Permalink
hotfix(*) avoid a crash in HUP mode when no 'wasm{}' block is set
Browse files Browse the repository at this point in the history
Accidentally changed in ac82ea1.
  • Loading branch information
thibaultcha committed Mar 27, 2024
1 parent 840a73b commit 1d19282
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/wasm/ngx_wasm_core_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,9 @@ ngx_wasm_core_init(ngx_cycle_t *cycle)
"wasm core module initializing");

wcf = ngx_wasm_core_cycle_get_conf(cycle);
ngx_wa_assert(wcf); /* ngx_wasmx.c would not invoke init if wcf == NULL */
if (wcf == NULL) {
return NGX_OK;
}

vm = wcf->vm;

Expand Down

0 comments on commit 1d19282

Please sign in to comment.