summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nxt_unit.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nxt_unit.c b/src/nxt_unit.c
index 1fc9acd8..576c751d 100644
--- a/src/nxt_unit.c
+++ b/src/nxt_unit.c
@@ -3502,6 +3502,10 @@ nxt_unit_mmap_get(nxt_unit_ctx_t *ctx, nxt_unit_port_t *port,
pthread_mutex_lock(&lib->outgoing.mutex);
+ if (nxt_slow_path(lib->outgoing.elts == NULL)) {
+ goto skip;
+ }
+
retry:
outgoing_size = lib->outgoing.size;
@@ -3598,6 +3602,8 @@ retry:
goto retry;
}
+skip:
+
*c = 0;
hdr = nxt_unit_new_mmap(ctx, port, *n);