From 66bb41e8bbe81d82a66f0d7188ad89963b4cd251 Mon Sep 17 00:00:00 2001 From: Max Romanov Date: Wed, 18 Nov 2020 22:33:53 +0300 Subject: [PATCH] Libunit: fixing read buffer allocations on exit. --- src/nxt_unit.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/nxt_unit.c b/src/nxt_unit.c index 69948954..0790afc4 100644 --- a/src/nxt_unit.c +++ b/src/nxt_unit.c @@ -5029,12 +5029,12 @@ retry: nxt_unit_process_ready_req(ctx); - rbuf = nxt_unit_read_buf_get(ctx); - if (nxt_slow_path(rbuf == NULL)) { - return NXT_UNIT_ERROR; - } - if (ctx_impl->online) { + rbuf = nxt_unit_read_buf_get(ctx); + if (nxt_slow_path(rbuf == NULL)) { + return NXT_UNIT_ERROR; + } + goto retry; }