Fix error message typo, wrong function code
authorRichard Levitte <levitte@openssl.org>
Thu, 22 Sep 2016 08:15:02 +0000 (10:15 +0200)
committerMatt Caswell <matt@openssl.org>
Thu, 22 Sep 2016 08:26:37 +0000 (09:26 +0100)
Reviewed-by: Matt Caswell <matt@openssl.org>
(cherry picked from commit a449b47c7d8e20efc8cc524ed695a060b11ef889)

ssl/statem/statem.c

index 8bc1febd1074244e64963d4e802ee1329b18dc43..5faf6aece7b25f5d1f413ceb92c6bcdf9e50ccfc 100644 (file)
@@ -549,7 +549,7 @@ static SUB_STATE_RETURN read_state_machine(SSL *s)
                                            (int)s->s3->tmp.message_size
                                            + SSL3_HM_HEADER_LENGTH)) {
                 ssl3_send_alert(s, SSL3_AL_FATAL, SSL_AD_INTERNAL_ERROR);
-                SSLerr(SSL_F_TLS_GET_MESSAGE_HEADER, ERR_R_BUF_LIB);
+                SSLerr(SSL_F_READ_STATE_MACHINE, ERR_R_BUF_LIB);
                 return SUB_STATE_ERROR;
             }