diff options
author | Andy Polyakov <appro@openssl.org> | 2014-02-25 22:21:54 +0100 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2014-02-25 22:23:49 +0100 |
commit | 8d08627c940900998d02a0dff0566db736efb94f (patch) | |
tree | 12c38eb7abb5ebd2cf4be4a1a05037c8df8a9dc5 /ssl | |
parent | aa1bb606f39bdc194f14ad3c374276723ac263e1 (diff) |
ssl/t1_enc.c: check EVP_MD_CTX_copy return value.
PR: 3201
(cherry picked from commit 03da57fe14f2de5bde9d4496a2ae9a4ae8879f88)
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/t1_enc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ssl/t1_enc.c b/ssl/t1_enc.c index 96c85a4d1b..1fe6731c31 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; } |