quic_tls.c: Fix wrong format string when raising error
authorTomas Mraz <tomas@openssl.org>
Wed, 23 Aug 2023 17:52:39 +0000 (19:52 +0200)
committerHugo Landau <hlandau@openssl.org>
Fri, 25 Aug 2023 11:03:46 +0000 (12:03 +0100)
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21823)

ssl/quic/quic_tls.c

index 14b23baeb270163c39c59b65fc1ca616ba4cf83e..586042bcd71c86da1bc5adbec3f684883b1d472d 100644 (file)
@@ -671,8 +671,8 @@ static int raise_error(QUIC_TLS *qtls, uint64_t error_code,
     ERR_new();
     ERR_set_debug(src_file, src_line, src_func);
     ERR_set_error(ERR_LIB_SSL, SSL_R_QUIC_HANDSHAKE_LAYER_ERROR,
-                  "handshake layer error, error code %zu (\"%s\")",
-                  error_code, error_msg);
+                  "handshake layer error, error code %llu (\"%s\")",
+                  (unsigned long long)error_code, error_msg);
     OSSL_ERR_STATE_save_to_mark(qtls->error_state);
 
     /*