mirror of
https://github.com/nginx/nginx.git
synced 2024-11-21 16:28:40 +00:00
Stream ssl_preread: do not reallocate a parsed SNI host.
We own this memory from the session pool.
This commit is contained in:
parent
504c78fc6d
commit
0fa8434957
@ -519,7 +519,7 @@ ngx_stream_ssl_preread_servername(ngx_stream_session_t *s,
|
||||
|
||||
host = *servername;
|
||||
|
||||
rc = ngx_stream_validate_host(&host, c->pool, 1);
|
||||
rc = ngx_stream_validate_host(&host, c->pool, 0);
|
||||
|
||||
if (rc == NGX_ERROR) {
|
||||
return NGX_ERROR;
|
||||
|
Loading…
Reference in New Issue
Block a user