Backport: initialise dh_clnt (from HEAD)

This commit is contained in:
Dr. Stephen Henson 2012-04-06 11:35:45 +00:00
parent c523eb98d1
commit 6cfccfec33

View 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)