Files
nginx-unit/src
Andrey Suvorov 19dfeba86b Fixing a crash after applying the wrong TLS configuration.
When an invalid TLS configuration is applied (such as the conf_commands
feature), nxt_cert_store_get() creates a buffer to send a certificate request
to the main process and adds its default completion handler to an asynchronous
queue to free the allocated buffer.  However, if configuration fails,
nxt_router_conf_error() removes the memory pool used to allocate the buffer,
causing a crash when the completion handler is dispatched.


Assertion "src/nxt_buf.c:208 assertion failed: data == b->parent" is triggered
when is NXT_DEBUG enabled in the configure script.


This patch uses a reference counter to retain the memory pool and redefines the
completion handler to free the buffer before releasing the memory pool.
2021-05-17 14:28:38 -07:00
..
2020-08-13 02:46:54 +03:00
2020-08-13 02:46:54 +03:00
2017-01-17 20:00:00 +03:00
2020-05-28 14:57:41 +01:00
2020-05-28 14:57:41 +01:00
2020-03-09 16:28:25 +00:00
2018-06-25 16:51:47 +03:00
2020-09-16 17:52:53 +01:00
2020-05-14 13:15:01 +03:00
2017-01-17 20:00:00 +03:00
2017-01-17 20:00:00 +03:00
2017-01-17 20:00:00 +03:00
2017-01-17 20:00:00 +03:00
2018-06-25 16:51:47 +03:00
2017-01-23 19:56:03 +03:00
2017-02-22 15:09:59 +03:00
2017-01-17 20:00:00 +03:00
2017-01-17 20:00:00 +03:00
2017-01-17 20:00:00 +03:00
2019-03-11 17:31:59 +03:00
2020-10-02 15:16:09 +03:00
2019-11-14 16:39:54 +03:00
2020-03-27 17:22:52 +03:00
2020-08-28 19:34:49 +03:00
2021-05-06 14:22:21 +00:00
2017-08-28 10:20:40 +03:00
2019-03-11 17:31:59 +03:00
2017-01-17 20:00:00 +03:00
2017-11-20 17:08:29 +03:00
2021-03-24 08:05:07 +03:00
2017-08-31 00:42:16 +03:00
2020-08-13 02:46:54 +03:00
2018-02-07 15:34:42 +03:00
2017-01-17 20:00:00 +03:00
2017-01-17 20:00:00 +03:00
2017-03-09 18:03:27 +03:00
2017-01-17 20:00:00 +03:00
2017-01-17 20:00:00 +03:00
2020-08-13 02:46:54 +03:00
2020-08-13 02:46:54 +03:00
2017-01-17 20:00:00 +03:00
2017-01-17 20:00:00 +03:00
2019-03-11 17:31:59 +03:00
2021-02-03 23:23:28 +03:00
2017-03-14 19:03:49 +03:00
2017-01-17 20:00:00 +03:00
2017-01-17 20:00:00 +03:00
2017-01-17 20:00:00 +03:00
2020-08-13 02:46:54 +03:00
2017-01-17 20:00:00 +03:00
2017-01-17 20:00:00 +03:00
2018-06-25 16:51:47 +03:00
2017-01-17 20:00:00 +03:00
2017-01-23 19:56:03 +03:00
2017-01-17 20:00:00 +03:00
2020-05-14 12:29:06 +02:00
2017-01-17 20:00:00 +03:00
2017-01-17 20:00:00 +03:00
2018-07-27 16:57:45 +03:00
2017-01-27 11:35:11 +03:00
2021-03-02 18:30:34 +03:00
2017-01-17 20:00:00 +03:00
2017-01-17 20:00:00 +03:00
2019-03-11 17:31:59 +03:00
2018-06-25 16:51:47 +03:00
2019-03-11 17:31:59 +03:00
2019-11-14 16:39:54 +03:00
2018-08-06 17:27:33 +03:00
2018-08-06 17:27:33 +03:00
2021-03-02 18:31:03 +03:00
2020-03-06 18:28:54 +03:00
2020-08-13 02:46:54 +03:00
2020-08-13 02:46:54 +03:00
2019-10-10 19:42:41 +03:00
2018-02-07 15:34:42 +03:00