Stream ssl_preread: do not reallocate a parsed SNI host.

We own this memory from the session pool.
This commit is contained in:
Sergey Kandaurov committed 2024-08-09 19:12:26 +04:00
1 parent 504c78fc6d
commit 0fa8434957
1 file changed
+1 -1
+1 -1
View File
@@ -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;