From f929d7bf7ab399aaaa968e5e591b325b6d40457d Mon Sep 17 00:00:00 2001 From: Dmitry Volyntsev Date: Thu, 22 Jun 2017 18:56:26 +0300 Subject: [PATCH] Fixed typo in js_include handler. --- nginx/ngx_http_js_module.c | 2 +- nginx/ngx_stream_js_module.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx/ngx_http_js_module.c b/nginx/ngx_http_js_module.c index cfe83d80..668b7192 100644 --- a/nginx/ngx_http_js_module.c +++ b/nginx/ngx_http_js_module.c @@ -1303,7 +1303,7 @@ ngx_http_js_include(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) cln = ngx_pool_cleanup_add(cf->pool, 0); if (cln == NULL) { - return NULL; + return NGX_CONF_ERROR; } cln->handler = ngx_http_js_cleanup_mem_cache_pool; diff --git a/nginx/ngx_stream_js_module.c b/nginx/ngx_stream_js_module.c index 8be73f3e..f9ab7ac1 100644 --- a/nginx/ngx_stream_js_module.c +++ b/nginx/ngx_stream_js_module.c @@ -1013,7 +1013,7 @@ ngx_stream_js_include(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) cln = ngx_pool_cleanup_add(cf->pool, 0); if (cln == NULL) { - return NULL; + return NGX_CONF_ERROR; } cln->handler = ngx_stream_js_cleanup_mem_cache_pool; -- 2.47.3