mirror of
https://github.com/nginx/nginx.git
synced 2026-10-22 12:01:09 +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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue