diff options
author | Stanislav Malyshev <stas@php.net> | 2011-12-26 02:16:37 +0000 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2011-12-26 02:16:37 +0000 |
commit | d705b11a1ee77530a10cabc6a1d3485c58df9d4b (patch) | |
tree | 7e0d5dc92190e6a469241f5c7e6dbcaf7acd01ac | |
parent | d36263b7bb37bfa14c1bbc8404bfc26fa0b91956 (diff) | |
download | php-git-d705b11a1ee77530a10cabc6a1d3485c58df9d4b.tar.gz |
fix uninitialized var that may lead to crash
-rw-r--r-- | ext/openssl/openssl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index dc27716d63..d045bc24d2 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -4697,7 +4697,7 @@ PHP_FUNCTION(openssl_encrypt) int data_len, method_len, password_len, iv_len = 0, max_iv_len; const EVP_CIPHER *cipher_type; EVP_CIPHER_CTX cipher_ctx; - int i, outlen, keylen; + int i=0, outlen, keylen; unsigned char *outbuf, *key; zend_bool free_iv; |