aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2020-10-21 12:03:22 +0100
committerSergey Kandaurov <pluknet@nginx.com>2020-10-21 12:03:22 +0100
commita47a4400b8201a4c5813fb91f211533c967b6aa4 (patch)
tree392dcd0c166a2e055d377e88406c114c554941ab /src
parentc405a364eb938910336a1636368e46604699a7a2 (diff)
downloadnginx-a47a4400b8201a4c5813fb91f211533c967b6aa4.tar.gz
nginx-a47a4400b8201a4c5813fb91f211533c967b6aa4.zip
QUIC: avoided excessive initialization in ngx_quic_send_frames().
A zero-length token was used to initialize a prezeroed packet header.
Diffstat (limited to 'src')
-rw-r--r--src/event/ngx_event_quic.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/event/ngx_event_quic.c b/src/event/ngx_event_quic.c
index f51d7c8eb..628090ca8 100644
--- a/src/event/ngx_event_quic.c
+++ b/src/event/ngx_event_quic.c
@@ -3857,7 +3857,6 @@ ngx_quic_send_frames(ngx_connection_t *c, ngx_quic_send_ctx_t *ctx,
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 @@ ngx_quic_send_frames(ngx_connection_t *c, ngx_quic_send_ctx_t *ctx,
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;