commit | dd8c65dfdcda98450d179393f0c8e6ebc782fd96 | [log] [tgz] |
---|---|---|
author | Maxim Dounin <mdounin@mdounin.ru> | Tue Jun 01 17:37:49 2021 +0300 |
committer | Maxim Dounin <mdounin@mdounin.ru> | Tue Jun 01 17:37:49 2021 +0300 |
tree | cc3cb8f9b3f96dd064b0b2408ef4801efbaf7834 | |
parent | c0724dba84860c366e79204b07e65a352d812004 [diff] |
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).