From bead27fff65f295db3d0d8bba6b3389c16571847 Mon Sep 17 00:00:00 2001 From: Dmitry Volyntsev Date: Tue, 17 Nov 2020 13:16:47 +0000 Subject: [PATCH] Stream: linking ngx object to the module missed in d7f6e719af98. --- nginx/ngx_stream_js_module.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nginx/ngx_stream_js_module.c b/nginx/ngx_stream_js_module.c index e177b935..29742dc2 100644 --- a/nginx/ngx_stream_js_module.c +++ b/nginx/ngx_stream_js_module.c @@ -1457,6 +1457,12 @@ ngx_stream_js_init_main_conf(ngx_conf_t *cf, void *conf) } jmcf->proto = proto; + + rc = ngx_js_core_init(jmcf->vm, cf->log); + if (njs_slow_path(rc != NJS_OK)) { + return NGX_CONF_ERROR; + } + end = start + size; rc = njs_vm_compile(jmcf->vm, &start, end); -- 2.47.3