diff options
author | Wez Furlong <wez@php.net> | 2004-10-27 11:07:53 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2004-10-27 11:07:53 +0000 |
commit | 0faac783e9dd7e00b542f78f20462ade35d87c7b (patch) | |
tree | e9912ff44be23bb15aff58ca2e89e1937d9cc8d2 | |
parent | 95b05465582376f42403d655252a4a0293bc3ddb (diff) | |
download | php-git-0faac783e9dd7e00b542f78f20462ade35d87c7b.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 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! */ } |