mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
Fixed infinite loop in ngx_quic_stream_send_chain().
This commit is contained in:
@@ -1989,7 +1989,7 @@ ngx_quic_stream_send_chain(ngx_connection_t *c, ngx_chain_t *in,
|
||||
ssize_t n;
|
||||
ngx_buf_t *b;
|
||||
|
||||
while (in) {
|
||||
for ( /* void */; in; in = in->next) {
|
||||
b = in->buf;
|
||||
|
||||
if (!ngx_buf_in_memory(b)) {
|
||||
@@ -2016,8 +2016,6 @@ ngx_quic_stream_send_chain(ngx_connection_t *c, ngx_chain_t *in,
|
||||
b->pos += n;
|
||||
return in;
|
||||
}
|
||||
|
||||
in = in->next;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user