mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 20:00:12 +01:00
Fix ctx initialization
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
2d0beab92a
commit
afa6fc7a7c
@ -138,7 +138,7 @@ int retrieve_file_from_archive(char *filename, int mode, char **buffer, FILE *de
|
|||||||
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||||
EVP_CIPHER_CTX ctx;
|
EVP_CIPHER_CTX ctx;
|
||||||
#else
|
#else
|
||||||
EVP_CIPHER_CTX *ctx;
|
EVP_CIPHER_CTX *ctx=NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@ -227,7 +227,7 @@ CLEANUP:
|
|||||||
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||||
EVP_CIPHER_CTX_cleanup(&ctx);
|
EVP_CIPHER_CTX_cleanup(&ctx);
|
||||||
#else
|
#else
|
||||||
EVP_CIPHER_CTX_free(ctx);
|
if(ctx) EVP_CIPHER_CTX_free(ctx);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user