]> granicus.if.org Git - openssl/commitdiff
ssl/t1_enc.c: check EVP_MD_CTX_copy return value.
authorAndy Polyakov <appro@openssl.org>
Tue, 25 Feb 2014 21:21:54 +0000 (22:21 +0100)
committerAndy Polyakov <appro@openssl.org>
Tue, 25 Feb 2014 21:23:49 +0000 (22:23 +0100)
PR: 3201
(cherry picked from commit 03da57fe14f2de5bde9d4496a2ae9a4ae8879f88)

ssl/t1_enc.c

index 96c85a4d1b5b8427e79d3ef08e59e4f9d40d0560..1fe6731c3104c9552ac92fbf45777b821e151054 100644 (file)
@@ -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;
                }