From: Dmitry Volyntsev Date: Tue, 17 Nov 2020 13:16:47 +0000 (+0000) Subject: Stream: linking ngx object to the module missed in d7f6e719af98. X-Git-Tag: 0.5.0~13 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=bead27fff65f295db3d0d8bba6b3389c16571847;p=njs.git Stream: linking ngx object to the module missed in d7f6e719af98. --- 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);