diff options
author | Sergey Kandaurov <pluknet@nginx.com> | 2024-08-09 19:12:26 +0400 |
---|---|---|
committer | Sergey Kandaurov <pluknet@nginx.com> | 2024-08-09 19:12:26 +0400 |
commit | 0fa8434957dcecef934a70e9c92d40a0a08988bd (patch) | |
tree | 4fb7e59787ef03f5cdce09dc16689bbee168cf61 /src | |
parent | 504c78fc6dd9542371b1658c9c8fdac6be20d2f6 (diff) | |
download | nginx-0fa8434957dcecef934a70e9c92d40a0a08988bd.tar.gz nginx-0fa8434957dcecef934a70e9c92d40a0a08988bd.zip |
Stream ssl_preread: do not reallocate a parsed SNI host.
We own this memory from the session pool.
Diffstat (limited to 'src')
-rw-r--r-- | src/stream/ngx_stream_ssl_preread_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |