changeset 8803:6c213bec71c2 quic

QUIC: fixed double memzero of new frames in ngx_quic_alloc_frame().
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 21 Jun 2021 12:47:46 +0300
parents d458101b7b81
children d56c7c4b66fd
files src/event/quic/ngx_event_quic_frames.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/event/quic/ngx_event_quic_frames.c
+++ b/src/event/quic/ngx_event_quic_frames.c
@@ -39,7 +39,7 @@ ngx_quic_alloc_frame(ngx_connection_t *c
 #endif
 
     } else {
-        frame = ngx_pcalloc(c->pool, sizeof(ngx_quic_frame_t));
+        frame = ngx_palloc(c->pool, sizeof(ngx_quic_frame_t));
         if (frame == NULL) {
             return NULL;
         }