Commit 48e6edab authored by Andy Polyakov's avatar Andy Polyakov
Browse files

ssl/t1_enc.c: check EVP_MD_CTX_copy return value.

PR: 3201
(cherry picked from commit 03da57fe)
parent 06960712
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
		}