wez Wed Oct 27 07:11:24 2004 EDT Modified files: (Branch: PHP_4_3) /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.52.2.18&r2=1.52.2.19&ty=u Index: php-src/ext/openssl/openssl.c diff -u php-src/ext/openssl/openssl.c:1.52.2.18 php-src/ext/openssl/openssl.c:1.52.2.19 --- php-src/ext/openssl/openssl.c:1.52.2.18 Tue Oct 26 05:29:21 2004 +++ php-src/ext/openssl/openssl.c Wed Oct 27 07:11:24 2004 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: openssl.c,v 1.52.2.18 2004/10/26 09:29:21 wez Exp $ */ +/* $Id: openssl.c,v 1.52.2.19 2004/10/27 11:11:24 wez Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -1611,6 +1611,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! */
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php