mirror of
https://github.com/nginx/nginx.git
synced 2024-11-21 16:28:40 +00:00
QUIC: set c->socklen for streams.
Previously, the value was not set and remained zero. While in nginx code the value of c->sockaddr is accessed without taking c->socklen into account, invalid c->socklen could lead to unexpected results in third-party modules.
This commit is contained in:
parent
906e3b5dca
commit
a4319bc496
@ -711,6 +711,7 @@ ngx_quic_create_stream(ngx_connection_t *c, uint64_t id)
|
||||
sc->pool = pool;
|
||||
sc->ssl = c->ssl;
|
||||
sc->sockaddr = c->sockaddr;
|
||||
sc->socklen = c->socklen;
|
||||
sc->listening = c->listening;
|
||||
sc->addr_text = c->addr_text;
|
||||
sc->local_sockaddr = c->local_sockaddr;
|
||||
|
Loading…
Reference in New Issue
Block a user