mirror of
https://github.com/nginx/nginx.git
synced 2026-08-27 04:07:18 +00:00
Stream: client SSL certificates were not checked in some cases.
If ngx_stream_ssl_init_connection() succeeded immediately, the check was not done. The bug had appeared in 1.11.8 (41cb1b64561d).
This commit is contained in:
parent
0ccbe0abe4
commit
620c9a4c44
1 changed files with 6 additions and 1 deletions
|
|
@ -284,6 +284,7 @@ ngx_stream_ssl_handler(ngx_stream_session_t *s)
|
|||
{
|
||||
long rc;
|
||||
X509 *cert;
|
||||
ngx_int_t rv;
|
||||
ngx_connection_t *c;
|
||||
ngx_stream_ssl_conf_t *sslcf;
|
||||
|
||||
|
|
@ -305,7 +306,11 @@ ngx_stream_ssl_handler(ngx_stream_session_t *s)
|
|||
return NGX_ERROR;
|
||||
}
|
||||
|
||||
return ngx_stream_ssl_init_connection(&sslcf->ssl, c);
|
||||
rv = ngx_stream_ssl_init_connection(&sslcf->ssl, c);
|
||||
|
||||
if (rv != NGX_OK) {
|
||||
return rv;
|
||||
}
|
||||
}
|
||||
|
||||
if (sslcf->verify) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue