From 2dbfd7c35e807770f2d3984a84b3f742d9392994 Mon Sep 17 00:00:00 2001 From: Max Romanov Date: Tue, 22 Oct 2019 16:14:02 +0300 Subject: Fixing process crash in case of module load error. This is related to #330 issue on GitHub. --- src/nxt_application.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/nxt_application.c') diff --git a/src/nxt_application.c b/src/nxt_application.c index 468bc627..bebe3907 100644 --- a/src/nxt_application.c +++ b/src/nxt_application.c @@ -327,6 +327,9 @@ nxt_app_start(nxt_task_t *task, void *data) lang->version, lang->file); nxt_app = nxt_app_module_load(task, lang->file); + if (nxt_slow_path(nxt_app == NULL)) { + return NXT_ERROR; + } } if (nxt_app->pre_init != NULL) { -- cgit