summaryrefslogtreecommitdiff
path: root/ext/openssl
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2007-07-11 07:26:52 +0000
committerDmitry Stogov <dmitry@php.net>2007-07-11 07:26:52 +0000
commit2821378c331cbc189e7ea7d2bc35feee4eb97937 (patch)
treea303c4126aafbf690bf24acebacda30645a163f3 /ext/openssl
parent06d76f722df6f68951dd561357bfb43cdb8cf517 (diff)
downloadphp-git-2821378c331cbc189e7ea7d2bc35feee4eb97937.tar.gz
Fixed crash on non-string passphrase
Diffstat (limited to 'ext/openssl')
-rw-r--r--ext/openssl/openssl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c
index c6ee21dd6b..41294f979a 100644
--- a/ext/openssl/openssl.c
+++ b/ext/openssl/openssl.c
@@ -2256,6 +2256,7 @@ static EVP_PKEY * php_openssl_evp_from_zval(zval ** val, int public_key, char *
} else {
tmp = **zphrase;
zval_copy_ctor(&tmp);
+ convert_to_string(&tmp);
passphrase = Z_STRVAL(tmp);
}