From: Dr. Stephen Henson Date: Tue, 26 Jul 2016 15:51:49 +0000 (+0100) Subject: Set error if EVP_CipherUpdate fails. X-Git-Tag: OpenSSL_1_1_0-pre6~73 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ee6ce5cc368574c0b0b470e61ee2f82a0efadbb7;p=oweals%2Fopenssl.git Set error if EVP_CipherUpdate fails. Reviewed-by: Rich Salz --- 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;