summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2014-02-25 22:21:54 +0100
committerAndy Polyakov <appro@openssl.org>2014-02-25 22:21:54 +0100
commit03da57fe14f2de5bde9d4496a2ae9a4ae8879f88 (patch)
tree50227ee3470632926da6ba2afeff93b11709b6a1 /ssl
parentaes/asm/vpaes-ppc.pl: fix traceback info. (diff)
downloadopenssl-03da57fe14f2de5bde9d4496a2ae9a4ae8879f88.tar.xz
openssl-03da57fe14f2de5bde9d4496a2ae9a4ae8879f88.zip
ssl/t1_enc.c: check EVP_MD_CTX_copy return value.
PR: 3201
Diffstat (limited to 'ssl')
-rw-r--r--ssl/t1_enc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ssl/t1_enc.c b/ssl/t1_enc.c
index 28471c2c82..a98f6fe882 100644
--- a/ssl/t1_enc.c
+++ b/ssl/t1_enc.c
@@ -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;
}