]> git.kaiwu.me - nginx.git/commitdiff
QUIC: fixed C4389 MSVC warning about signed/unsigned mismatch.
authorSergey Kandaurov <pluknet@nginx.com>
Tue, 22 Nov 2022 14:05:36 +0000 (18:05 +0400)
committerSergey Kandaurov <pluknet@nginx.com>
Tue, 22 Nov 2022 14:05:36 +0000 (18:05 +0400)
src/event/quic/ngx_event_quic_protection.c

index 1247e1954982480bf562914ae54a034ceaec5f46..3110c9e64e945916d6ad3d505bce27cec4ac71f7 100644 (file)
@@ -988,8 +988,9 @@ ngx_quic_decrypt(ngx_quic_header_t *pkt, uint64_t *largest_pn)
     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];