From: Matt Caswell Date: Mon, 2 Jan 2017 11:16:37 +0000 (+0000) Subject: Initialise the al variable X-Git-Tag: OpenSSL_1_1_1-pre1~2796 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0baed5e90b5c211b092a1279b0dac50166cd34d2;p=oweals%2Fopenssl.git Initialise the al variable al can be used uninitialised in an error path. Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/2020) --- diff --git a/ssl/statem/statem_clnt.c b/ssl/statem/statem_clnt.c index 98e19b50ba..84dcf08bd4 100644 --- a/ssl/statem/statem_clnt.c +++ b/ssl/statem/statem_clnt.c @@ -3012,7 +3012,7 @@ WORK_STATE tls_prepare_client_certificate(SSL *s, WORK_STATE wst) int tls_construct_client_certificate(SSL *s, WPACKET *pkt) { - int al; + int al = SSL_AD_INTERNAL_ERROR; /* * TODO(TLS1.3): For now we must put an empty context. Needs to be filled in