Mercurial > hg > nginx-quic
comparison src/event/ngx_event_quic.c @ 7932:4e75267865de quic
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.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Thu, 18 Jun 2020 11:16:35 +0300 |
parents | 9fe7875ce4bb |
children | a2c34e77cfc1 |
comparison
equal
deleted
inserted
replaced
7931:9fe7875ce4bb | 7932:4e75267865de |
---|---|
2260 } | 2260 } |
2261 } | 2261 } |
2262 | 2262 |
2263 if (!found) { | 2263 if (!found) { |
2264 | 2264 |
2265 if (max <= ctx->pnum) { | 2265 if (max < ctx->pnum) { |
2266 /* duplicate ACK or ACK for non-ack-eliciting frame */ | 2266 /* duplicate ACK or ACK for non-ack-eliciting frame */ |
2267 return NGX_OK; | 2267 return NGX_OK; |
2268 } | 2268 } |
2269 | 2269 |
2270 ngx_log_error(NGX_LOG_INFO, c->log, 0, | 2270 ngx_log_error(NGX_LOG_INFO, c->log, 0, |