From 15b1688ac9d1f31ad87d3390dabed42061d90dd8 Mon Sep 17 00:00:00 2001 From: Paul Yang Date: Thu, 22 Jun 2017 00:31:26 +0800 Subject: [PATCH] Avoid compiler complaining initialize some local variables Reviewed-by: Matt Caswell Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/3741) --- ssl/statem/extensions_clnt.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ssl/statem/extensions_clnt.c b/ssl/statem/extensions_clnt.c index 846ee30091..0d1ca281f7 100644 --- a/ssl/statem/extensions_clnt.c +++ b/ssl/statem/extensions_clnt.c @@ -790,11 +790,11 @@ EXT_RETURN tls_construct_ctos_psk(SSL *s, WPACKET *pkt, unsigned int context, X509 *x, size_t chainidx, int *al) { #ifndef OPENSSL_NO_TLS1_3 - uint32_t now, agesec, agems; - size_t reshashsize, pskhashsize, binderoffset, msglen, idlen; + uint32_t now, agesec, agems = 0; + size_t reshashsize = 0, pskhashsize = 0, binderoffset, msglen, idlen = 0; unsigned char *resbinder = NULL, *pskbinder = NULL, *msgstart = NULL; - const unsigned char *id; - const EVP_MD *handmd = NULL, *mdres, *mdpsk; + const unsigned char *id = 0; + const EVP_MD *handmd = NULL, *mdres = NULL, *mdpsk = NULL; EXT_RETURN ret = EXT_RETURN_FAIL; SSL_SESSION *psksess = NULL; int dores = 0; -- 2.25.1