]> git.kaiwu.me - nginx.git/commit
SSL: fixed possible segfault on renegotiation (ticket #845).
authorSergey Kandaurov <pluknet@nginx.com>
Tue, 8 Dec 2015 13:59:43 +0000 (16:59 +0300)
committerSergey Kandaurov <pluknet@nginx.com>
Tue, 8 Dec 2015 13:59:43 +0000 (16:59 +0300)
commit79fcf261d0b50c03ae2780b5588b59ed2eb7ad88
treefb93f82fc31a4ab5c623a004f63fd9edcb6ba4c7
parent1be1e1133543dae1e3b99fc5708a0d67eaa1fd20
SSL: fixed possible segfault on renegotiation (ticket #845).

Skip SSL_CTX_set_tlsext_servername_callback in case of renegotiation.
Do nothing in SNI callback as in this case it will be supplied with
request in c->data which isn't expected and doesn't work this way.

This was broken by b40af2fd1c16 (1.9.6) with OpenSSL master branch and LibreSSL.
src/http/ngx_http_request.c