changeset 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
files src/event/quic/ngx_event_quic.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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_q
 
         if (f->data) {
             pos = f->data->buf->pos;
-            end = f->data->buf->end;
+            end = f->data->buf->last;
 
         } else {
             pos = NULL;