diff --git a/ssl/t1_enc.c b/ssl/t1_enc.c index 96c85a4d1..1fe6731c3 100644 --- a/ssl/t1_enc.c +++ b/ssl/t1_enc.c @@ -1009,7 +1009,8 @@ int tls1_mac(SSL *ssl, unsigned char *md, int send) } else { - EVP_MD_CTX_copy(&hmac,hash); + if (!EVP_MD_CTX_copy(&hmac,hash)) + return -1; mac_ctx = &hmac; }