Skip to content

Commit

Permalink
ssl/t1_enc.c: check EVP_MD_CTX_copy return value.
Browse files Browse the repository at this point in the history
PR: 3201
  • Loading branch information
Andy Polyakov committed Feb 25, 2014
1 parent e704741 commit 03da57f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ssl/t1_enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 03da57f

Please sign in to comment.