Mercurial > hg > nginx
comparison src/http/ngx_http_request.c @ 7628:2e3bfd696ecb
Disabled connection reuse while in SSL handshake.
During SSL handshake, the connection could be reused in the OCSP stapling
callback, if configured, which subsequently leads to a segmentation fault.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 27 Feb 2020 19:03:21 +0300 |
parents | 4f18393a1d51 |
children | b4dbf8b98f9a 7999d3fbb765 |
comparison
equal
deleted
inserted
replaced
7627:4f18393a1d51 | 7628:2e3bfd696ecb |
---|---|
746 { | 746 { |
747 ngx_http_close_connection(c); | 747 ngx_http_close_connection(c); |
748 return; | 748 return; |
749 } | 749 } |
750 | 750 |
751 ngx_reusable_connection(c, 0); | |
752 | |
751 rc = ngx_ssl_handshake(c); | 753 rc = ngx_ssl_handshake(c); |
752 | 754 |
753 if (rc == NGX_AGAIN) { | 755 if (rc == NGX_AGAIN) { |
754 | 756 |
755 if (!rev->timer_set) { | 757 if (!rev->timer_set) { |
756 ngx_add_timer(rev, c->listening->post_accept_timeout); | 758 ngx_add_timer(rev, c->listening->post_accept_timeout); |
757 } | 759 } |
758 | |
759 ngx_reusable_connection(c, 0); | |
760 | 760 |
761 c->ssl->handler = ngx_http_ssl_handshake_handler; | 761 c->ssl->handler = ngx_http_ssl_handshake_handler; |
762 return; | 762 return; |
763 } | 763 } |
764 | 764 |