Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Langley <agl@chromium.org>2014-06-20 23:00:00 +0400
committerAdam Langley <agl@chromium.org>2014-06-21 00:17:38 +0400
commit9f61d7f4a1e081f11c9e307c571ba69825c8eb6f (patch)
treefe46a330db8d05e2f80752062564ed2f5a1b7f87 /ssl/t1_enc.c
parentc83b1ceae2dbde83310a355123485c98f14cd01f (diff)
ssl/t1_enc.c: check EVP_MD_CTX_copy return value.
PR: 3201 (Imported from upstream's 8d08627c940900998d02a0dff0566db736efb94f)
Diffstat (limited to 'ssl/t1_enc.c')
-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 72dbee35..95ecfaad 100644
--- a/ssl/t1_enc.c
+++ b/ssl/t1_enc.c
@@ -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;
}