changeset 9041:e23fd55e1cc6 quic

QUIC: fixed C4389 MSVC warning about signed/unsigned mismatch.
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 22 Nov 2022 18:05:36 +0400
parents 8c0bccdf2743
children 96bdda15413a
files src/event/quic/ngx_event_quic_protection.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/event/quic/ngx_event_quic_protection.c
+++ b/src/event/quic/ngx_event_quic_protection.c
@@ -988,8 +988,9 @@ ngx_quic_decrypt(ngx_quic_header_t *pkt,
     u_char              *p, *sample;
     size_t               len;
     uint64_t             pn, lpn;
-    ngx_int_t            pnl, rc, key_phase;
+    ngx_int_t            pnl, rc;
     ngx_str_t            in, ad;
+    ngx_uint_t           key_phase;
     ngx_quic_secret_t   *secret;
     ngx_quic_ciphers_t   ciphers;
     uint8_t              nonce[NGX_QUIC_IV_LEN], mask[NGX_QUIC_HP_LEN];