Skip to content

Commit 0fa8434

Browse files
committed
Stream ssl_preread: do not reallocate a parsed SNI host.
We own this memory from the session pool.
1 parent 504c78f commit 0fa8434

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stream/ngx_stream_ssl_preread_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ ngx_stream_ssl_preread_servername(ngx_stream_session_t *s,
519519

520520
host = *servername;
521521

522-
rc = ngx_stream_validate_host(&host, c->pool, 1);
522+
rc = ngx_stream_validate_host(&host, c->pool, 0);
523523

524524
if (rc == NGX_ERROR) {
525525
return NGX_ERROR;

0 commit comments

Comments
 (0)