From 0fa8434957dcecef934a70e9c92d40a0a08988bd Mon Sep 17 00:00:00 2001 From: Sergey Kandaurov Date: Fri, 9 Aug 2024 19:12:26 +0400 Subject: [PATCH] Stream ssl_preread: do not reallocate a parsed SNI host. We own this memory from the session pool. --- src/stream/ngx_stream_ssl_preread_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;