From 976ef6adcc157233fb641ca99e2424630ef1814f Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Tue, 26 Jul 2016 20:22:49 +0100 Subject: [PATCH] Note cipher BIO write errors too. 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 d1422f03bf..5bc5d65e6d 100644 --- a/crypto/evp/bio_enc.c +++ b/crypto/evp/bio_enc.c @@ -231,6 +231,7 @@ static int enc_write(BIO *b, const char *in, int inl) (unsigned char *)ctx->buf, &ctx->buf_len, (unsigned char *)in, n)) { BIO_clear_retry_flags(b); + ctx->ok = 0; return 0; } inl -= n; -- 2.34.1