aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2021-02-09 14:31:36 +0300
committerRoman Arutyunyan <arut@nginx.com>2021-02-09 14:31:36 +0300
commit56a11126e8ce2bc643806a2e1263a512a595fde0 (patch)
tree2f64c1aed4c78935f01e57be680776a01c433f3c /src
parenteab61bfc22b583031b5a6f42f9c277223ce18672 (diff)
downloadnginx-56a11126e8ce2bc643806a2e1263a512a595fde0.tar.gz
nginx-56a11126e8ce2bc643806a2e1263a512a595fde0.zip
QUIC: fixed logging ACK frames.
Previously, the wrong end pointer was used, which could lead to errors "quic failed to parse ack frame gap".
Diffstat (limited to 'src')
-rw-r--r--src/event/quic/ngx_event_quic.c2
1 files changed, 1 insertions, 1 deletions
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;