From 484f8c1083f5fc01012267a6bbbb1d939f0b8a65 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Mon, 29 Dec 2008 16:59:47 +0000 Subject: [PATCH] Remove useless affectation. SVN revision: 38349 --- legacy/eet/src/lib/eet_cipher.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/legacy/eet/src/lib/eet_cipher.c b/legacy/eet/src/lib/eet_cipher.c index 1bd67b4add..1c77da7453 100644 --- a/legacy/eet/src/lib/eet_cipher.c +++ b/legacy/eet/src/lib/eet_cipher.c @@ -115,7 +115,6 @@ eet_identity_open(const char *certificate_file, const char *private_key_file, Ee /* Reset values */ fclose(fp); - fd = -1; fp = NULL; data = NULL; load_file.data = NULL; @@ -681,7 +680,6 @@ eet_cipher(const void *data, unsigned int size, const char *key, unsigned int le /* Gcrypt close the cipher */ gcry_cipher_close(cipher); - opened = 0; # else buffer = alloca(crypted_length); *buffer = tmp; @@ -702,9 +700,8 @@ eet_cipher(const void *data, unsigned int size, const char *key, unsigned int le if (!EVP_EncryptFinal_ex(&ctx, ((unsigned char*)(ret + 1)) + tmp_len, &tmp_len)) goto on_error; EVP_CIPHER_CTX_cleanup(&ctx); - opened = 0; - # endif + /* Set return values */ if (result_length) *result_length = crypted_length + sizeof(unsigned int); if (result) *result = ret;