ssl/t1_enc.c: check EVP_MD_CTX_copy return value.
PR: 3201
This commit is contained in:
parent
e704741bf3
commit
03da57fe14
@ -1009,7 +1009,8 @@ int tls1_mac(SSL *ssl, unsigned char *md, int send)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
EVP_MD_CTX_copy(&hmac,hash);
|
if (!EVP_MD_CTX_copy(&hmac,hash))
|
||||||
|
return -1;
|
||||||
mac_ctx = &hmac;
|
mac_ctx = &hmac;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user