From 56a11126e8ce2bc643806a2e1263a512a595fde0 Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Tue, 9 Feb 2021 14:31:36 +0300 Subject: [PATCH] QUIC: fixed logging ACK frames. Previously, the wrong end pointer was used, which could lead to errors "quic failed to parse ack frame gap". --- src/event/quic/ngx_event_quic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/event/quic/ngx_event_quic.c b/src/event/quic/ngx_event_quic.c index b3a20ecf1..6159e87e1 100644 --- a/src/event/quic/ngx_event_quic.c +++ b/src/event/quic/ngx_event_quic.c @@ -464,7 +464,7 @@ ngx_quic_log_frame(ngx_log_t *log, ngx_quic_frame_t *f, ngx_uint_t tx) if (f->data) { pos = f->data->buf->pos; - end = f->data->buf->end; + end = f->data->buf->last; } else { pos = NULL;