Mercurial > hg > nginx
changeset 8933:02a9ad88e2df quic
QUIC: added missing frame initialization.
Currently, all used fields are initialized, but usage may change in future.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Mon, 06 Dec 2021 11:04:55 +0300 |
parents | 501f28679d56 |
children | 9ec96ceaf484 |
files | src/event/quic/ngx_event_quic_migration.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/event/quic/ngx_event_quic_migration.c Thu Dec 09 12:40:14 2021 +0300 +++ b/src/event/quic/ngx_event_quic_migration.c Mon Dec 06 11:04:55 2021 +0300 @@ -31,6 +31,8 @@ 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 @@ "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;