Add and use a constant-time memcmp.
[oweals/openssl.git] / ssl / d1_lib.c
index 56f62530e5543ef93abae6fa5e85edb9d84192cb..f61f718183083ff23bcbb281c777ee6f9bd364ae 100644 (file)
@@ -412,7 +412,7 @@ int dtls1_check_timeout_num(SSL *s)
        if (s->d1->timeout.num_alerts > DTLS1_TMO_ALERT_COUNT)
                {
                /* fail the connection, enough alerts have been sent */
-               SSLerr(SSL_F_DTLS1_HANDLE_TIMEOUT,SSL_R_READ_TIMEOUT_EXPIRED);
+               SSLerr(SSL_F_DTLS1_CHECK_TIMEOUT_NUM,SSL_R_READ_TIMEOUT_EXPIRED);
                return -1;
                }