From cb2d3c8f1ca34d40be441c3fa3746d4f48d5fef4 Mon Sep 17 00:00:00 2001 From: cedric Date: Fri, 30 Jan 2009 13:50:01 +0000 Subject: [PATCH] * eet/src/lib/eet_cipher.c: Fix a corrupted pointer use. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eet@38856 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/eet_cipher.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/eet_cipher.c b/src/lib/eet_cipher.c index 17921ab..9e5fe6a 100644 --- a/src/lib/eet_cipher.c +++ b/src/lib/eet_cipher.c @@ -668,7 +668,7 @@ eet_cipher(const void *data, unsigned int size, const char *key, unsigned int le err = gcry_cipher_open(&cipher, GCRY_CIPHER_AES256, GCRY_CIPHER_MODE_CBC, 0); if (err) goto on_error; opened = 1; - err = gcry_cipher_setiv(cipher, &iv, MAX_IV_LEN); + err = gcry_cipher_setiv(cipher, iv, MAX_IV_LEN); if (err) goto on_error; err = gcry_cipher_setkey(cipher, ik, MAX_KEY_LEN); if (err) goto on_error; @@ -772,7 +772,7 @@ eet_decipher(const void *data, unsigned int size, const char *key, unsigned int /* Gcrypt create the corresponding cipher */ err = gcry_cipher_open(&cipher, GCRY_CIPHER_AES256, GCRY_CIPHER_MODE_CBC, 0); if (err) return EET_ERROR_DECRYPT_FAILED; - err = gcry_cipher_setiv(cipher, &iv, MAX_IV_LEN); + err = gcry_cipher_setiv(cipher, iv, MAX_IV_LEN); if (err) goto on_error; err = gcry_cipher_setkey(cipher, ik, MAX_KEY_LEN); if (err) goto on_error; -- 2.7.4