summaryrefslogtreecommitdiffhomepage
path: root/src/event/quic/ngx_event_quic_migration.c
diff options
context:
space:
mode:
authorVladimir Homutov <vl@nginx.com>2021-12-06 11:04:55 +0300
committerVladimir Homutov <vl@nginx.com>2021-12-06 11:04:55 +0300
commit3ab900cbd973af51ba5b0c54f8e31e2ca997b283 (patch)
treec43f898f4427c3ad5009607bcd1dab04c15a7b6f /src/event/quic/ngx_event_quic_migration.c
parentb61447d436bc0d774c0fb85de82a887a3ac13ccc (diff)
downloadnginx-3ab900cbd973af51ba5b0c54f8e31e2ca997b283.tar.gz
nginx-3ab900cbd973af51ba5b0c54f8e31e2ca997b283.tar.bz2
QUIC: added missing frame initialization.
Currently, all used fields are initialized, but usage may change in future.
Diffstat (limited to 'src/event/quic/ngx_event_quic_migration.c')
-rw-r--r--src/event/quic/ngx_event_quic_migration.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/event/quic/ngx_event_quic_migration.c b/src/event/quic/ngx_event_quic_migration.c
index 55997cbd3..f2a9f5bfd 100644
--- a/src/event/quic/ngx_event_quic_migration.c
+++ b/src/event/quic/ngx_event_quic_migration.c
@@ -31,6 +31,8 @@ ngx_quic_handle_path_challenge_frame(ngx_connection_t *c,
qc = ngx_quic_get_connection(c);
+ ngx_memzero(&frame, sizeof(ngx_quic_frame_t));
+
frame.level = ssl_encryption_application;
frame.type = NGX_QUIC_FT_PATH_RESPONSE;
frame.u.path_response = *f;
@@ -524,6 +526,8 @@ ngx_quic_send_path_challenge(ngx_connection_t *c, ngx_quic_path_t *path)
"quic path #%uL send path challenge tries:%ui",
path->seqnum, path->tries);
+ ngx_memzero(&frame, sizeof(ngx_quic_frame_t));
+
frame.level = ssl_encryption_application;
frame.type = NGX_QUIC_FT_PATH_CHALLENGE;