]> granicus.if.org Git - php/commitdiff
fix uninitialized var that may lead to crash
authorStanislav Malyshev <stas@php.net>
Mon, 26 Dec 2011 02:16:37 +0000 (02:16 +0000)
committerStanislav Malyshev <stas@php.net>
Mon, 26 Dec 2011 02:16:37 +0000 (02:16 +0000)
ext/openssl/openssl.c

index dc27716d63f47630a4aa28d13723bbd306594ceb..d045bc24d2f10b30b4122e6bc15d7bf3afc1b3ad 100644 (file)
@@ -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;