]> granicus.if.org Git - php/commitdiff
initialize variable. this code still segfaults in OpenSSL, no idea why
authorAntony Dovgal <tony2001@php.net>
Thu, 22 Apr 2010 11:56:08 +0000 (11:56 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 22 Apr 2010 11:56:08 +0000 (11:56 +0000)
ext/openssl/openssl.c

index 392295eb708f9c647f646a8458ec1fe5a37467a2..c90d0b5926ad83d64fada96394069229e637362b 100644 (file)
@@ -4443,7 +4443,7 @@ SSL *php_SSL_new_from_context(SSL_CTX *ctx, php_stream *stream TSRMLS_DC) /* {{{
                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 */