提交 03da57fe 编写于 作者: A Andy Polyakov

ssl/t1_enc.c: check EVP_MD_CTX_copy return value.

PR: 3201
上级 e704741b
...@@ -1009,7 +1009,8 @@ int tls1_mac(SSL *ssl, unsigned char *md, int send) ...@@ -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;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册