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

From: Date: Wed, 27 Oct 2004 11:07:25 +0000
Subject: cvs: php-src /ext/openssl openssl.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-29033@lists.php.net to get a copy of this message
wez Wed Oct 27 07:07:25 2004 EDT Modified files: /php-src/ext/openssl openssl.c Log: Fix possible crash; patch by Kamesh Jayachandran http://cvs.php.net/diff.php/php-src/ext/openssl/openssl.c?r1=1.92&r2=1.93&ty=u Index: php-src/ext/openssl/openssl.c diff -u php-src/ext/openssl/openssl.c:1.92 php-src/ext/openssl/openssl.c:1.93 --- php-src/ext/openssl/openssl.c:1.92 Tue Oct 26 05:24:06 2004 +++ php-src/ext/openssl/openssl.c Wed Oct 27 07:07:25 2004 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: openssl.c,v 1.92 2004/10/26 09:24:06 wez Exp $ */ +/* $Id: openssl.c,v 1.93 2004/10/27 11:07:25 wez Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -1670,6 +1670,7 @@ if (we_made_the_key) { /* and a resource for the private key */ ZVAL_RESOURCE(out_pkey, zend_list_insert(req.priv_key, le_key)); + req.priv_key = NULL; /* make sure the cleanup code doesn't zap it! */ } else if (key_resource != -1) { req.priv_key = NULL; /* make sure the cleanup code doesn't zap it! */ }

« previous php.cvs (#29033) next »