diff options
author | Max Romanov <max.romanov@nginx.com> | 2019-10-22 16:14:02 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2019-10-22 16:14:02 +0300 |
commit | 2dbfd7c35e807770f2d3984a84b3f742d9392994 (patch) | |
tree | 36abf795c7618d40bb37ab22a1c22dbcd818a622 /src | |
parent | 8df4468014310c8a880d3edf90ae1edfca5197bd (diff) | |
download | unit-2dbfd7c35e807770f2d3984a84b3f742d9392994.tar.gz unit-2dbfd7c35e807770f2d3984a84b3f742d9392994.tar.bz2 |
Fixing process crash in case of module load error.
This is related to #330 issue on GitHub.
Diffstat (limited to 'src')
-rw-r--r-- | src/nxt_application.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) { |