]> git.kaiwu.me - nginx.git/commit
Upstream: plugged potential memory leak on reload.
authorMaxim Dounin <mdounin@mdounin.ru>
Fri, 18 Apr 2014 16:13:24 +0000 (20:13 +0400)
committerMaxim Dounin <mdounin@mdounin.ru>
Fri, 18 Apr 2014 16:13:24 +0000 (20:13 +0400)
commit93eb94d622093829da4bd4c3e0af16b360e912e4
tree1b2edc57acda69d0dfc8f3322a18a1584435ceb9
parent6c9c973aa77b68a9adb1d0814ef5920aaf0ef157
Upstream: plugged potential memory leak on reload.

The SSL_CTX_set_cipher_list() may fail if there are no valid ciphers
specified in proxy_ssl_ciphers / uwsgi_ssl_ciphers, resulting in
SSL context leak.

In theory, ngx_pool_cleanup_add() may fail too, but this case is
intentionally left out for now as it's almost impossible and proper fix
will require changes to http ssl and mail ssl code as well.
src/http/modules/ngx_http_proxy_module.c
src/http/modules/ngx_http_uwsgi_module.c