[nginx] Stream ssl_preread: do not reallocate a parsed SNI host.
Sergey Kandaurov
pluknet at nginx.com
Fri Aug 9 16:56:40 UTC 2024
details: https://hg.nginx.org/nginx/rev/b5550a7f16c7
branches:
changeset: 9275:b5550a7f16c7
user: Sergey Kandaurov <pluknet at nginx.com>
date: Fri Aug 09 19:12:26 2024 +0400
description:
Stream ssl_preread: do not reallocate a parsed SNI host.
We own this memory from the session pool.
diffstat:
src/stream/ngx_stream_ssl_preread_module.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r ee7eb005b3b4 -r b5550a7f16c7 src/stream/ngx_stream_ssl_preread_module.c
--- a/src/stream/ngx_stream_ssl_preread_module.c Fri Aug 09 19:12:26 2024 +0400
+++ b/src/stream/ngx_stream_ssl_preread_module.c Fri Aug 09 19:12:26 2024 +0400
@@ -519,7 +519,7 @@ ngx_stream_ssl_preread_servername(ngx_st
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;
More information about the nginx-devel
mailing list