mirror of
https://github.com/nginx/nginx.git
synced 2026-10-21 11:31:24 +00:00
QUIC: fixed off-by-one in frame range handler.
The ctx->pnum is incremented after the packet is sent, thus pointing to the next packet number, which should not be used in comparison.
This commit is contained in:
parent
3b3264dc25
commit
a213258b5b
1 changed files with 1 additions and 1 deletions
|
|
@ -2262,7 +2262,7 @@ ngx_quic_handle_ack_frame_range(ngx_connection_t *c, ngx_quic_send_ctx_t *ctx,
|
|||
|
||||
if (!found) {
|
||||
|
||||
if (max <= ctx->pnum) {
|
||||
if (max < ctx->pnum) {
|
||||
/* duplicate ACK or ACK for non-ack-eliciting frame */
|
||||
return NGX_OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue