aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2024-01-22 14:17:24 +0000
committerHugo Landau <hlandau@openssl.org>2024-02-08 16:50:00 +0000
commit39a387f46c1b4f85af4a3a9cf98e50772d117485 (patch)
tree9b515fcb8ddf96e87e5d9b7ea592e5ba60036fd3
parent7048339158a9ccfbbbeaa4d88baf74f06d41392e (diff)
downloadopenssl-39a387f46c1b4f85af4a3a9cf98e50772d117485.tar.gz
Quiet false warning about uninitialised variable
Reviewed-by: Neil Horman <nhorman@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/23360)
-rw-r--r--ssl/quic/quic_impl.c2
-rw-r--r--test/quic_multistream_test.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ssl/quic/quic_impl.c b/ssl/quic/quic_impl.c
index f760f5f84d..84214bd5f7 100644
--- a/ssl/quic/quic_impl.c
+++ b/ssl/quic/quic_impl.c
@@ -3207,7 +3207,7 @@ static int qc_getset_idle_timeout(QCTX *ctx, uint32_t class_,
uint64_t *p_value_out, uint64_t *p_value_in)
{
int ret = 0;
- uint64_t value_out, value_in;
+ uint64_t value_out = 0, value_in;
quic_lock(ctx->qc);
diff --git a/test/quic_multistream_test.c b/test/quic_multistream_test.c
index aeb4ca4d7e..b7fa98dbd6 100644
--- a/test/quic_multistream_test.c
+++ b/test/quic_multistream_test.c
@@ -5241,7 +5241,7 @@ static int modify_idle_timeout(struct helper *h, struct helper_local *hl)
/* Test bad value is rejected. */
if (!TEST_false(SSL_set_feature_request_uint(h->c_conn,
SSL_VALUE_QUIC_IDLE_TIMEOUT,
- (1UL << 62))))
+ (1ULL << 62))))
return 0;
/* Set value. */