]> git.kaiwu.me - nginx.git/commitdiff
QUIC: fixed clang-ast asserts.
authorSergey Kandaurov <pluknet@nginx.com>
Thu, 1 Oct 2020 11:09:47 +0000 (12:09 +0100)
committerSergey Kandaurov <pluknet@nginx.com>
Thu, 1 Oct 2020 11:09:47 +0000 (12:09 +0100)
src/event/ngx_event_quic.c
src/event/ngx_event_quic_protection.c

index 61e46a471bccaabd5138db4fe409fb90677b76cd..82bb8902d929ea62deaf5bfaa46c32ef6e2d9c97 100644 (file)
@@ -1237,7 +1237,7 @@ ngx_quic_init_connection(ngx_connection_t *c)
         }
 
         ngx_quic_hexdump(c->log, "quic stateless reset token",
-                         qc->tp.sr_token, NGX_QUIC_SR_TOKEN_LEN);
+                         qc->tp.sr_token, (size_t) NGX_QUIC_SR_TOKEN_LEN);
     }
 
     len = ngx_quic_create_transport_params(NULL, NULL, &qc->tp, &clen);
index b77d65971379db601a48304639a9b4a771c90f63..0bb9e8f87abfd0a66958780e58dc5324c18d51cd 100644 (file)
@@ -972,7 +972,7 @@ ngx_quic_new_sr_token(ngx_connection_t *c, ngx_str_t *cid, ngx_str_t *secret,
 
 #if (NGX_DEBUG)
     ngx_quic_hexdump(c->log, "quic stateless reset token", token,
-                     NGX_QUIC_SR_TOKEN_LEN);
+                     (size_t) NGX_QUIC_SR_TOKEN_LEN);
 #endif
 
     return NGX_OK;