]> 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 430467b4dd9f787f8318c38a53b8109357d54663..0b91cec6d0c0e5fa735b66338f5ecfc1c00307c9 100644 (file)
@@ -4445,7 +4445,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 */