changeset 8659:d9f673d18e9b quic

QUIC: set the temporary flag for input frame buffers. Missing flag prevented frame data from being copied as the buffer was not considered a memory buffer.
author Roman Arutyunyan <arut@nginx.com>
date Tue, 08 Dec 2020 14:44:41 +0000
parents 0af4ec6d1f92
children 6201cef77b1d
files src/event/ngx_event_quic.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/event/ngx_event_quic.c
+++ b/src/event/ngx_event_quic.c
@@ -2481,6 +2481,7 @@ ngx_quic_payload_handler(ngx_connection_
         c->log->action = "parsing frames";
 
         ngx_memzero(&buf, sizeof(ngx_buf_t));
+        buf.temporary = 1;
 
         chain.buf = &buf;
         chain.next = NULL;