From d705b11a1ee77530a10cabc6a1d3485c58df9d4b Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Mon, 26 Dec 2011 02:16:37 +0000 Subject: [PATCH] fix uninitialized var that may lead to crash --- ext/openssl/openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.40.0