Commit 560b34f2 authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

Ignore NULL parameter in EVP_MD_CTX_destroy.

(cherry picked from commit a6c62f0c)
parent fc0503a2
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -343,10 +343,13 @@ int EVP_Digest(const void *data, size_t count,
	}

void EVP_MD_CTX_destroy(EVP_MD_CTX *ctx)
	{
	if (ctx)
		{
		EVP_MD_CTX_cleanup(ctx);
		OPENSSL_free(ctx);
		}
	}

/* This call frees resources associated with the context */
int EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx)