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:
Roman Arutyunyan 2023-04-27 19:49:05 +04:00
parent 906e3b5dca
commit a4319bc496

View File

@ -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;