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:38 +0000 (18:10 +0000)
Reviewed-by: Matt Caswell <matt@openssl.org>
(cherry picked from commit 4a4d4158572fd8b3dc641851b8378e791df7972d)

ssl/s3_clnt.c

index 77f61f1dd06732498690cf80365eb0a7abf2f530..dd38732a76107b677c587adad05ddf9ad92f954a 100644 (file)
@@ -1627,7 +1627,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)