From: Sergey Kandaurov Date: Fri, 9 Aug 2024 15:12:26 +0000 (+0400) Subject: Stream ssl_preread: do not reallocate a parsed SNI host. X-Git-Tag: release-1.27.1~4 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=0fa8434957dcecef934a70e9c92d40a0a08988bd;p=nginx.git Stream ssl_preread: do not reallocate a parsed SNI host. We own this memory from the session pool. --- diff --git a/src/stream/ngx_stream_ssl_preread_module.c b/src/stream/ngx_stream_ssl_preread_module.c index bc96adeee..3fc83ff2f 100644 --- a/src/stream/ngx_stream_ssl_preread_module.c +++ b/src/stream/ngx_stream_ssl_preread_module.c @@ -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;