diff options
author | Wez Furlong <wez@php.net> | 2004-10-27 11:11:28 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2004-10-27 11:11:28 +0000 |
commit | 02b50acd93b6b464e309712c1f76269d6b6e8272 (patch) | |
tree | ae1ed8a49dee5509b4af0e6ed966382ed699fb5b | |
parent | 4ab0cd7dcbd819c25858a8e4945ad567ac7bdc89 (diff) | |
download | php-git-02b50acd93b6b464e309712c1f76269d6b6e8272.tar.gz |
Fix possible crash; patch by Kamesh Jayachandran
-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 b1a7c856a8..6c78ad937a 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -1611,6 +1611,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! */ |