ssl/t1_enc.c: check EVP_MD_CTX_copy return value.

PR: 3201

(Imported from upstream's 8d08627c940900998d02a0dff0566db736efb94f)
This commit is contained in:
Adam Langley 2014-06-20 12:00:00 -07:00
parent c83b1ceae2
commit 9f61d7f4a1

View File

@ -1221,7 +1221,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;
}