]> git.kaiwu.me - nginx.git/commit
SSL: ngx_ssl_shutdown() rework.
authorMaxim Dounin <mdounin@mdounin.ru>
Tue, 1 Jun 2021 14:37:49 +0000 (17:37 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Tue, 1 Jun 2021 14:37:49 +0000 (17:37 +0300)
commit235d2df1de6aba77db3d128c0c637c9d2e9a9d12
treecc3cb8f9b3f96dd064b0b2408ef4801efbaf7834
parentdf1da673f74f52c215a3e9eee2b99a28085e5baa
SSL: ngx_ssl_shutdown() rework.

Instead of calling SSL_free() with each return point, introduced a single
place where cleanup happens.  As a positive side effect, this fixes two
potential memory leaks on ngx_handle_read_event() and ngx_handle_write_event()
errors where there were no SSL_free() calls (though unlikely practical,
as errors there are only expected to happen due to bugs or kernel issues).
src/event/ngx_event_openssl.c