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 c4ff1ea7a64c58090990a69d057cfe40506a1b8e..be64f95646e1ad1546fb674aab6f823318a8722a 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)