]> git.kaiwu.me - nginx.git/commitdiff
QUIC: set the temporary flag for input frame buffers.
authorRoman Arutyunyan <arut@nginx.com>
Tue, 8 Dec 2020 14:44:41 +0000 (14:44 +0000)
committerRoman Arutyunyan <arut@nginx.com>
Tue, 8 Dec 2020 14:44:41 +0000 (14:44 +0000)
Missing flag prevented frame data from being copied as the buffer was not
considered a memory buffer.

src/event/ngx_event_quic.c

index f923ebe4784131131ce8d2f91f95c04f09ddd50a..95f92ed210b470bfd5eb18f6aa78522febab2bb4 100644 (file)
@@ -2481,6 +2481,7 @@ ngx_quic_payload_handler(ngx_connection_t *c, ngx_quic_header_t *pkt)
         c->log->action = "parsing frames";
 
         ngx_memzero(&buf, sizeof(ngx_buf_t));
+        buf.temporary = 1;
 
         chain.buf = &buf;
         chain.next = NULL;