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:03 +0000 (18:10 +0000)
Reviewed-by: Matt Caswell <matt@openssl.org>
ssl/s3_clnt.c

index aa9dcbb5b3aa1e05794adaaa1ad1a95f76a250ff..ced326b2e73c0ce1c30096b9a1e5af079cee777e 100644 (file)
@@ -1640,7 +1640,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)