From 9c4f375672e958e5b93aeef57b1b135dc230a721 Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Wed, 11 Jun 2014 15:30:49 +0200 Subject: [PATCH] Cannot use malloc with OPENSSL_free. --- openssl-1.0.1h-system-cipherlist.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openssl-1.0.1h-system-cipherlist.patch b/openssl-1.0.1h-system-cipherlist.patch index 0ac422c..bf55b3d 100644 --- a/openssl-1.0.1h-system-cipherlist.patch +++ b/openssl-1.0.1h-system-cipherlist.patch @@ -120,7 +120,7 @@ diff -up openssl-1.0.1h/ssl/ssl_ciph.c.system openssl-1.0.1h/ssl/ssl_ciph.c + buf[len] = 0; + } + -+ new_rules = malloc(len + slen + 1); ++ new_rules = OPENSSL_malloc(len + slen + 1); + if (new_rules == 0) + return NULL; + @@ -153,7 +153,7 @@ diff -up openssl-1.0.1h/ssl/ssl_ciph.c.system openssl-1.0.1h/ssl/ssl_ciph.c + + if (rule_str != NULL && strncmp(rule_str, "PROFILE=SYSTEM", 14) == 0) + { -+ char* p = rule_str + 14; ++ char *p = rule_str + 14; + + new_rules = load_system_str(p); + rule_str = new_rules;