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