diff options
author | Max Romanov <max.romanov@nginx.com> | 2020-07-22 10:04:57 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2020-07-22 10:04:57 +0300 |
commit | ef7194819662975f53822ac27a071bf00259e38e (patch) | |
tree | 80636db13d4b28cb3e1e9d63220f7c7041cceda2 /src/nxt_application.c | |
parent | d86e0a7aec86bf2ed472aec3a69dd17a34329301 (diff) | |
download | unit-ef7194819662975f53822ac27a071bf00259e38e.tar.gz unit-ef7194819662975f53822ac27a071bf00259e38e.tar.bz2 |
Fixing buffer overflow check in discovery.
Incorrect check prevents Unit to start without modules.
This issue was introduced in 4a3ec07f4b19.
Diffstat (limited to 'src/nxt_application.c')
-rw-r--r-- | src/nxt_application.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_application.c b/src/nxt_application.c index 62167040..834badf9 100644 --- a/src/nxt_application.c +++ b/src/nxt_application.c @@ -289,7 +289,7 @@ nxt_discovery_modules(nxt_task_t *task, const char *path) *p++ = ']'; - if (nxt_slow_path(p >= end)) { + if (nxt_slow_path(p > end)) { nxt_alert(task, "discovery write past the buffer"); goto fail; } |