changeset 9043:5b49f8bac1b4 quic

QUIC: plug MSVC warning about potentially uninitialized variable.
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 22 Nov 2022 18:05:37 +0400
parents 96bdda15413a
children 2b3a8d5795c9
files src/event/quic/ngx_event_quic_tokens.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/event/quic/ngx_event_quic_tokens.c
+++ b/src/event/quic/ngx_event_quic_tokens.c
@@ -178,6 +178,10 @@ ngx_quic_validate_token(ngx_connection_t
     u_char             addr_hash[20];
     u_char             tdec[NGX_QUIC_MAX_TOKEN_SIZE];
 
+#if NGX_SUPPRESS_WARN
+    ngx_str_null(&odcid);
+#endif
+
     /* Retry token or NEW_TOKEN in a previous connection */
 
     cipher = EVP_aes_256_cbc();