]> 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)
commit4a5108b203404e6a2453e58fce667bde84e603b2
tree32bf3b5f16240508668a669839ec11c5c4afc94c
parent284322947094b5c29ffc2166a946b26258c8f46c
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