mirror of
https://github.com/nginx/nginx.git
synced 2025-01-06 16:47:49 +08: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
@ -2262,7 +2262,7 @@ ngx_quic_handle_ack_frame_range(ngx_connection_t *c, ngx_quic_send_ctx_t *ctx,
|
|||||||
|
|
||||||
if (!found) {
|
if (!found) {
|
||||||
|
|
||||||
if (max <= ctx->pnum) {
|
if (max < ctx->pnum) {
|
||||||
/* duplicate ACK or ACK for non-ack-eliciting frame */
|
/* duplicate ACK or ACK for non-ack-eliciting frame */
|
||||||
return NGX_OK;
|
return NGX_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user