summaryrefslogtreecommitdiff
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:24:24 +0100
commit48e6edabed592301a8ab90845ce17b214879befe (patch)
tree73db137eec4b0dddd32e02d670162ab0339e2f5d
parent069607124d725f4f9179b9a946799a7a76c6878e (diff)
downloadopenssl-new-48e6edabed592301a8ab90845ce17b214879befe.tar.gz
ssl/t1_enc.c: check EVP_MD_CTX_copy return value.
PR: 3201 (cherry picked from commit 03da57fe14f2de5bde9d4496a2ae9a4ae8879f88)
-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 56db834306..0c4cddedf8 100644
--- a/ssl/t1_enc.c
+++ b/ssl/t1_enc.c
@@ -986,7 +986,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;
}