initialise dh_clnt
authorDr. Stephen Henson <steve@openssl.org>
Thu, 26 Jan 2012 14:37:46 +0000 (14:37 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 26 Jan 2012 14:37:46 +0000 (14:37 +0000)
ssl/s3_clnt.c

index 4f884c6..7a8b7f2 100644 (file)
@@ -2432,6 +2432,7 @@ int ssl3_send_client_key_exchange(SSL *s)
                                {
                                /* Use client certificate key */
                                EVP_PKEY *clkey = s->cert->key->privatekey;
                                {
                                /* 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)
                                if (clkey)
                                        dh_clnt = EVP_PKEY_get1_DH(clkey);
                                if (dh_clnt == NULL)