Fix uninitialised variable
authorMatt Caswell <matt@openssl.org>
Fri, 20 Nov 2015 18:45:12 +0000 (18:45 +0000)
committerMatt Caswell <matt@openssl.org>
Fri, 20 Nov 2015 23:15:53 +0000 (23:15 +0000)
The al variable could be uninitialised in an error path.

Reviewed-by: Rich Salz <rsalz@openssl.org>
ssl/statem/statem_srvr.c

index a7498d8..61a79f5 100644 (file)
@@ -2855,6 +2855,7 @@ MSG_PROCESS_RETURN tls_process_client_key_exchange(SSL *s, PACKET *pkt)
         inlen = Tlen;
         if (EVP_PKEY_decrypt
             (pkey_ctx, premaster_secret, &outlen, start, inlen) <= 0) {
+            al = SSL_AD_DECODE_ERROR;
             SSLerr(SSL_F_TLS_PROCESS_CLIENT_KEY_EXCHANGE,
                    SSL_R_DECRYPTION_FAILED);
             goto gerr;