ssl/t1_enc.c: check EVP_MD_CTX_copy return value.
PR: 3201
(cherry picked from commit 03da57fe14
)
This commit is contained in:
parent
069607124d
commit
48e6edabed
1 changed files with 2 additions and 1 deletions
|
@ -986,7 +986,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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue