From: tb Date: Thu, 7 Jul 2022 17:09:45 +0000 (+0000) Subject: Initialize hkdf_label to NULL. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5d39295890f764d647502f824b89a2ac64b5915a;p=openbsd Initialize hkdf_label to NULL. Needed for an upcoming diff adding a NULL check to CBB_finish(). ok jsing --- 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 * @@ -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;