File bug-861384-crash_webrtc.patch of Package openssl.openSUSE_13.1_Update

Index: openssl-1.0.1e/crypto/evp/digest.c
===================================================================
--- openssl-1.0.1e.orig/crypto/evp/digest.c
+++ openssl-1.0.1e/crypto/evp/digest.c
@@ -366,8 +366,11 @@ int EVP_Digest(const void *data, size_t
 
 void EVP_MD_CTX_destroy(EVP_MD_CTX *ctx)
 	{
-	EVP_MD_CTX_cleanup(ctx);
-	OPENSSL_free(ctx);
+       if (ctx)
+               {
+               EVP_MD_CTX_cleanup(ctx);
+               OPENSSL_free(ctx);
+               }
 	}
 
 /* This call frees resources associated with the context */
openSUSE Build Service is sponsored by