Backport: initialise dh_clnt (from HEAD)
authorDr. Stephen Henson <steve@openssl.org>
Fri, 6 Apr 2012 11:35:45 +0000 (11:35 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 6 Apr 2012 11:35:45 +0000 (11:35 +0000)
ssl/s3_clnt.c

index c4ff1ea..be64f95 100644 (file)
@@ -2466,6 +2466,7 @@ int ssl3_send_client_key_exchange(SSL *s)
                                {
                                /* Use client certificate key */
                                EVP_PKEY *clkey = s->cert->key->privatekey;
+                               dh_clnt = NULL;
                                if (clkey)
                                        dh_clnt = EVP_PKEY_get1_DH(clkey);
                                if (dh_clnt == NULL)