comparison src/event/quic/ngx_event_quic.c @ 8695:0b3d70fbba99 quic

QUIC: fixed logging ACK frames. Previously, the wrong end pointer was used, which could lead to errors "quic failed to parse ack frame gap".
author Roman Arutyunyan <arut@nginx.com>
date Tue, 09 Feb 2021 14:31:36 +0300
parents cef042935003
children 88c9c868a7c9
comparison
equal deleted inserted replaced
8694:cef042935003 8695:0b3d70fbba99
462 p = ngx_slprintf(p, last, "ACK n:%ui delay:%uL ", 462 p = ngx_slprintf(p, last, "ACK n:%ui delay:%uL ",
463 f->u.ack.range_count, f->u.ack.delay); 463 f->u.ack.range_count, f->u.ack.delay);
464 464
465 if (f->data) { 465 if (f->data) {
466 pos = f->data->buf->pos; 466 pos = f->data->buf->pos;
467 end = f->data->buf->end; 467 end = f->data->buf->last;
468 468
469 } else { 469 } else {
470 pos = NULL; 470 pos = NULL;
471 end = NULL; 471 end = NULL;
472 } 472 }