diff options
author | Wez Furlong <wez@php.net> | 2004-10-27 11:07:26 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2004-10-27 11:07:26 +0000 |
commit | c8cc96e6fe156fe1a996cf6df30a37907a6dc8e0 (patch) | |
tree | 21be96af23f0d25755fd95ad0b38e16127127052 /ext/openssl/openssl.c | |
parent | 35b00ffdabfadbb78f564358a6cf7a595f1227fe (diff) | |
download | php-git-c8cc96e6fe156fe1a996cf6df30a37907a6dc8e0.tar.gz |
Fix possible crash; patch by Kamesh Jayachandran
Diffstat (limited to 'ext/openssl/openssl.c')
-rw-r--r-- | ext/openssl/openssl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index 091b14ff77..bb540d96b9 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -1670,6 +1670,7 @@ PHP_FUNCTION(openssl_csr_new) 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! */ } |