summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2022-07-07 17:09:46 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2022-07-07 17:09:46 +0000
commitaf2d9d72b6a78b6d8ad6f3c41529af993f038fd4 (patch)
tree2aa1829f68e0072daab3cf817eaa05de9f2399a1
parentce532fa4040240191fdbdd8c47776151191e3073 (diff)
Initialize hkdf_label to NULL.
Needed for an upcoming diff adding a NULL check to CBB_finish(). ok jsing
-rw-r--r--lib/libssl/tls13_key_schedule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libssl/tls13_key_schedule.c b/lib/libssl/tls13_key_schedule.c
index bb96cf3dd85..d88faab0b18 100644
--- a/lib/libssl/tls13_key_schedule.c
+++ b/lib/libssl/tls13_key_schedule.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tls13_key_schedule.c,v 1.14 2021/01/05 18:36:22 tb Exp $ */
+/* $OpenBSD: tls13_key_schedule.c,v 1.15 2022/07/07 17:09:45 tb Exp $ */
/*
* Copyright (c) 2018, Bob Beck <beck@openbsd.org>
*
@@ -169,7 +169,7 @@ tls13_hkdf_expand_label_with_length(struct tls13_secret *out,
const uint8_t *label, size_t label_len, const struct tls13_secret *context)
{
const char tls13_plabel[] = "tls13 ";
- uint8_t *hkdf_label;
+ uint8_t *hkdf_label = NULL;
size_t hkdf_label_len;
CBB cbb, child;
int ret;