Skip to content

Commit

Permalink
Update nginx strict sni patch.
Browse files Browse the repository at this point in the history
  • Loading branch information
hakasenyang committed Oct 4, 2018
1 parent 3a49366 commit 997e1bb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/event/ngx_event_openssl.c
Expand Up @@ -1460,6 +1460,14 @@ ngx_ssl_handshake(ngx_connection_t *c)

c->read->error = 1;

// nginx strict sni patch.
// https://github.com/hakasenyang/openssl-patch/issues/1#issuecomment-427040319
if (sslerr == SSL_ERROR_SSL) {
ERR_peek_error();
ERR_clear_error();
return NGX_ERROR;
}

ngx_ssl_connection_error(c, sslerr, err, "SSL_do_handshake() failed");

return NGX_ERROR;
Expand Down

0 comments on commit 997e1bb

Please sign in to comment.