components/openssl/openssl-1.0.1/patches/34_tls_segfault.patch
author Petr Sumbera <petr.sumbera@oracle.com>
Tue, 25 Mar 2014 10:17:45 -0700
changeset 1789 afea5ee094d1
parent 1641 2fc479afcf70
permissions -rw-r--r--
18457505 Upgrade Wireshark to version 1.10.6 18384235 problem in UTILITY/WIRESHARK

Index: openssl/ssl/t1_enc.c
============================================================================
$ diff -ru ssl/t1_enc.c ssl/t1_enc.c
--- t1_enc.c.orig       Tue Dec 10 15:36:05 2013
+++ t1_enc.c    Wed Dec 11 09:29:02 2013
@@ -986,7 +986,10 @@
 		}
 		else
 		{
-			EVP_MD_CTX_copy(&hmac,hash);
+			if (EVP_MD_CTX_copy(&hmac,hash) != 1)
+				{
+				return (0);
+				}
 			mac_ctx = &hmac;
 		}