From 0baed5e90b5c211b092a1279b0dac50166cd34d2 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Mon, 2 Jan 2017 11:16:37 +0000 Subject: [PATCH] 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) --- ssl/statem/statem_clnt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.25.1