summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_h1proto.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2020-09-18 13:20:02 +0300
committerIgor Sysoev <igor@sysoev.ru>2020-09-18 13:20:02 +0300
commit09f4db1fc0ae5c1ad649316c1b97934af628736b (patch)
tree7f8820ebe5eeeacb3c45fbedf36b05775f590650 /src/nxt_h1proto.c
parent806135f1c93c09bb513efc1341d084951b080278 (diff)
downloadunit-09f4db1fc0ae5c1ad649316c1b97934af628736b.tar.gz
unit-09f4db1fc0ae5c1ad649316c1b97934af628736b.tar.bz2
Fixed use-after-free error during reconfiguration.
An idle connection was not removed from idle connection list if the connections detected that listening socket had been closed.
Diffstat (limited to 'src/nxt_h1proto.c')
-rw-r--r--src/nxt_h1proto.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nxt_h1proto.c b/src/nxt_h1proto.c
index b34be019..f340ea1e 100644
--- a/src/nxt_h1proto.c
+++ b/src/nxt_h1proto.c
@@ -1829,6 +1829,8 @@ nxt_h1p_idle_close(nxt_task_t *task, void *obj, void *data)
nxt_debug(task, "h1p idle close");
+ nxt_queue_remove(&c->link);
+
nxt_h1p_idle_response(task, c);
}