cvs: php-src /ext/openssl openssl.c

From: Date: Tue, 26 Oct 2004 09:24:07 +0000
Subject: cvs: php-src /ext/openssl openssl.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-29027@lists.php.net to get a copy of this message
wez Tue Oct 26 05:24:07 2004 EDT Modified files: /php-src/ext/openssl openssl.c Log: Fix for Bug #29418 (double free when openssl_csr_new fails). Also hook up MSHUTDOWN function which appears to have never been enabled. Patch by Kamesh Jayachandran http://cvs.php.net/diff.php/php-src/ext/openssl/openssl.c?r1=1.91&r2=1.92&ty=u Index: php-src/ext/openssl/openssl.c diff -u php-src/ext/openssl/openssl.c:1.91 php-src/ext/openssl/openssl.c:1.92 --- php-src/ext/openssl/openssl.c:1.91 Mon Sep 13 14:30:29 2004 +++ php-src/ext/openssl/openssl.c Tue Oct 26 05:24:06 2004 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: openssl.c,v 1.91 2004/09/13 18:30:29 magnus Exp $ */ +/* $Id: openssl.c,v 1.92 2004/10/26 09:24:06 wez Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -135,7 +135,7 @@ "openssl", openssl_functions, PHP_MINIT(openssl), - NULL, + PHP_MSHUTDOWN(openssl), NULL, NULL, PHP_MINFO(openssl), @@ -1675,6 +1675,12 @@ } } } + else { + if (!we_made_the_key) { + /* if we have not made the key we are not supposed to zap it by calling dispose! */ + req.priv_key = NULL; + } + } } } }

« previous php.cvs (#29027) next »