From ee6ce5cc368574c0b0b470e61ee2f82a0efadbb7 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Tue, 26 Jul 2016 16:51:49 +0100 Subject: [PATCH] Set error if EVP_CipherUpdate fails. Reviewed-by: Rich Salz --- crypto/evp/bio_enc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/evp/bio_enc.c b/crypto/evp/bio_enc.c index 5a4d9c5d87..d1422f03bf 100644 --- a/crypto/evp/bio_enc.c +++ b/crypto/evp/bio_enc.c @@ -163,6 +163,7 @@ static int enc_read(BIO *b, char *out, int outl) (unsigned char *)&(ctx->buf[BUF_OFFSET]), i)) { BIO_clear_retry_flags(b); + ctx->ok = 0; return 0; } ctx->cont = 1; -- 2.34.1