]> granicus.if.org Git - php/commitdiff
Fix bug #61413 ext\openssl\tests\openssl_encrypt_crash.phpt fails 5.3 only
authorAnatoliy Belsky <ab@php.net>
Tue, 24 Apr 2012 12:05:35 +0000 (14:05 +0200)
committerAnatoliy Belsky <ab@php.net>
Tue, 24 Apr 2012 12:05:35 +0000 (14:05 +0200)
ext/openssl/openssl.c

index 7c5afc55d73e8e4deb60587e0823cf3548aade3e..779a91db9c90efaa8b812e9063ca7a2e8d0f9c57 100644 (file)
@@ -4677,7 +4677,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;