]> git.kaiwu.me - nginx.git/commitdiff
QUIC: plug MSVC warning about potentially uninitialized variable.
authorSergey Kandaurov <pluknet@nginx.com>
Tue, 22 Nov 2022 14:05:37 +0000 (18:05 +0400)
committerSergey Kandaurov <pluknet@nginx.com>
Tue, 22 Nov 2022 14:05:37 +0000 (18:05 +0400)
src/event/quic/ngx_event_quic_tokens.c

index aeea2ed0398344ec16dcda251cce2ee59c7bf255..e67825aabaa46fc299c9f64db5cdefa787435ff1 100644 (file)
@@ -178,6 +178,10 @@ ngx_quic_validate_token(ngx_connection_t *c, u_char *key,
     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();