tony2001                                 Thu, 22 Apr 2010 11:56:08 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=298314

Log:
initialize variable. this code still segfaults in OpenSSL, no idea why

Changed paths:
    U   php/php-src/branches/PHP_5_3/ext/openssl/openssl.c
    U   php/php-src/trunk/ext/openssl/openssl.c

Modified: php/php-src/branches/PHP_5_3/ext/openssl/openssl.c
===================================================================
--- php/php-src/branches/PHP_5_3/ext/openssl/openssl.c  2010-04-22 11:49:10 UTC 
(rev 298313)
+++ php/php-src/branches/PHP_5_3/ext/openssl/openssl.c  2010-04-22 11:56:08 UTC 
(rev 298314)
@@ -4445,7 +4445,7 @@
                EVP_PKEY *key = NULL;
                SSL *tmpssl;
                char resolved_path_buff[MAXPATHLEN];
-               const char * private_key;
+               const char * private_key = NULL;

                if (VCWD_REALPATH(certfile, resolved_path_buff)) {
                        /* a certificate to use for authentication */

Modified: php/php-src/trunk/ext/openssl/openssl.c
===================================================================
--- php/php-src/trunk/ext/openssl/openssl.c     2010-04-22 11:49:10 UTC (rev 
298313)
+++ php/php-src/trunk/ext/openssl/openssl.c     2010-04-22 11:56:08 UTC (rev 
298314)
@@ -4443,7 +4443,7 @@
                EVP_PKEY *key = NULL;
                SSL *tmpssl;
                char resolved_path_buff[MAXPATHLEN];
-               const char * private_key;
+               const char * private_key = NULL;

                if (VCWD_REALPATH(certfile, resolved_path_buff)) {
                        /* a certificate to use for authentication */

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to