summaryrefslogtreecommitdiff
path: root/main/openssl/crypto/evp/p_seal.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/openssl/crypto/evp/p_seal.c')
-rw-r--r--main/openssl/crypto/evp/p_seal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/openssl/crypto/evp/p_seal.c b/main/openssl/crypto/evp/p_seal.c
index d8324526..e5919b0f 100644
--- a/main/openssl/crypto/evp/p_seal.c
+++ b/main/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;
}