From: Bernd Edlinger Date: Sun, 16 Dec 2018 11:43:59 +0000 (+0100) Subject: Fix a minor nit in the hkdflabel size X-Git-Tag: openssl-3.0.0-alpha1~2673 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0b4233f5a4a181a6dcb7c511cd2663e500e659a4;p=oweals%2Fopenssl.git Fix a minor nit in the hkdflabel size Reviewed-by: Paul Dale Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/7913) --- diff --git a/ssl/tls13_enc.c b/ssl/tls13_enc.c index 17966c8023..6022950cf8 100644 --- a/ssl/tls13_enc.c +++ b/ssl/tls13_enc.c @@ -41,7 +41,7 @@ int tls13_hkdf_expand(SSL *s, const EVP_MD *md, const unsigned char *secret, * + bytes for the hash itself */ unsigned char hkdflabel[sizeof(uint16_t) + sizeof(uint8_t) + - + sizeof(label_prefix) + TLS13_MAX_LABEL_LEN + + (sizeof(label_prefix) - 1) + TLS13_MAX_LABEL_LEN + 1 + EVP_MAX_MD_SIZE]; WPACKET pkt;