1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 17:22:15 +01:00

Fixed crash on non-string passphrase

This commit is contained in:
Dmitry Stogov
2007-07-11 07:26:52 +00:00
parent 06d76f722d
commit 2821378c33

View File

@@ -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);
}