wez Wed Oct 27 07:07:49 2004 EDT Modified files: (Branch: PHP_5_0) /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.89.2.3&r2=1.89.2.4&ty=u Index: php-src/ext/openssl/openssl.c diff -u php-src/ext/openssl/openssl.c:1.89.2.3 php-src/ext/openssl/openssl.c:1.89.2.4 --- php-src/ext/openssl/openssl.c:1.89.2.3 Tue Oct 26 05:28:33 2004 +++ php-src/ext/openssl/openssl.c Wed Oct 27 07:07:49 2004 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: openssl.c,v 1.89.2.3 2004/10/26 09:28:33 wez Exp $ */ +/* $Id: openssl.c,v 1.89.2.4 2004/10/27 11:07:49 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! */ }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php