# HG changeset patch # User Sergey Kandaurov # Date 1603278202 -3600 # Node ID f948945c1a1c528d1e6b120b7892a9b5a6babef4 # Parent ffa14521990e9a76cc35430786def63a2d377faf QUIC: avoided excessive initialization in ngx_quic_send_frames(). A zero-length token was used to initialize a prezeroed packet header. diff -r ffa14521990e -r f948945c1a1c src/event/ngx_event_quic.c --- a/src/event/ngx_event_quic.c Wed Oct 21 12:03:21 2020 +0100 +++ b/src/event/ngx_event_quic.c Wed Oct 21 12:03:22 2020 +0100 @@ -3857,7 +3857,6 @@ ngx_quic_header_t pkt; ngx_quic_secrets_t *keys; ngx_quic_connection_t *qc; - static ngx_str_t initial_token = ngx_null_string; static u_char src[NGX_QUIC_MAX_UDP_PAYLOAD_SIZE]; static u_char dst[NGX_QUIC_MAX_UDP_PAYLOAD_SIZE]; @@ -3918,7 +3917,6 @@ if (start->level == ssl_encryption_initial) { pkt.flags |= NGX_QUIC_PKT_LONG | NGX_QUIC_PKT_INITIAL; - pkt.token = initial_token; } else if (start->level == ssl_encryption_handshake) { pkt.flags |= NGX_QUIC_PKT_LONG | NGX_QUIC_PKT_HANDSHAKE;