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:21:54 +0100 |
commit | 03da57fe14f2de5bde9d4496a2ae9a4ae8879f88 (patch) | |
tree | 50227ee3470632926da6ba2afeff93b11709b6a1 /ssl | |
parent | aes/asm/vpaes-ppc.pl: fix traceback info. (diff) | |
download | openssl-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.c | 3 |
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; } |