diff options
author | Igor Sysoev <igor@sysoev.ru> | 2020-09-18 13:20:02 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2020-09-18 13:20:02 +0300 |
commit | 09f4db1fc0ae5c1ad649316c1b97934af628736b (patch) | |
tree | 7f8820ebe5eeeacb3c45fbedf36b05775f590650 | |
parent | 806135f1c93c09bb513efc1341d084951b080278 (diff) | |
download | unit-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.
-rw-r--r-- | src/nxt_h1proto.c | 2 |
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); } |