Remove useless affectation.

SVN revision: 38349
This commit is contained in:
Cedric BAIL 2008-12-29 16:59:47 +00:00
parent f2037c5c6f
commit 484f8c1083
1 changed files with 1 additions and 4 deletions

View File

@ -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;