]> git.kaiwu.me - nginx.git/commitdiff
QUIC: fixed double memzero of new frames in ngx_quic_alloc_frame().
authorSergey Kandaurov <pluknet@nginx.com>
Mon, 21 Jun 2021 09:47:46 +0000 (12:47 +0300)
committerSergey Kandaurov <pluknet@nginx.com>
Mon, 21 Jun 2021 09:47:46 +0000 (12:47 +0300)
src/event/quic/ngx_event_quic_frames.c

index 3177fa9927606bba2c7a5c2d1f2bbd882d556e75..52b5c624ea66ead73cf001826bc00564ffb38388 100644 (file)
@@ -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;
         }