summaryrefslogtreecommitdiff
path: root/app/openssl/crypto/evp/p_seal.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/openssl/crypto/evp/p_seal.c')
-rw-r--r--app/openssl/crypto/evp/p_seal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/openssl/crypto/evp/p_seal.c b/app/openssl/crypto/evp/p_seal.c
index d8324526..e5919b0f 100644
--- a/app/openssl/crypto/evp/p_seal.c
+++ b/app/openssl/crypto/evp/p_seal.c
@@ -110,6 +110,7 @@ int EVP_SealFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl)
{
int i;
i = EVP_EncryptFinal_ex(ctx,out,outl);
- EVP_EncryptInit_ex(ctx,NULL,NULL,NULL,NULL);
+ if (i)
+ i = EVP_EncryptInit_ex(ctx,NULL,NULL,NULL,NULL);
return i;
}