fix error discrepancy
authorDr. Stephen Henson <steve@openssl.org>
Wed, 7 Jan 2015 17:36:17 +0000 (17:36 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 7 Jan 2015 18:10:51 +0000 (18:10 +0000)
Reviewed-by: Matt Caswell <matt@openssl.org>
(cherry picked from commit 4a4d4158572fd8b3dc641851b8378e791df7972d)

ssl/s3_clnt.c

index 023c6795ae15e51fccbf9c017fee90a70a39b47d..7692716988ac7f55558189969cb17afdd612a049 100644 (file)
@@ -1541,7 +1541,7 @@ int ssl3_get_key_exchange(SSL *s)
                if (!SSL_C_IS_EXPORT(s->s3->tmp.new_cipher))
                        {
                        al=SSL_AD_UNEXPECTED_MESSAGE;
-                       SSLerr(SSL_F_SSL3_GET_SERVER_CERTIFICATE,SSL_R_UNEXPECTED_MESSAGE);
+                       SSLerr(SSL_F_SSL3_GET_KEY_EXCHANGE,SSL_R_UNEXPECTED_MESSAGE);
                        goto f_err;
                        }
                if ((rsa=RSA_new()) == NULL)