From: Dr. Stephen Henson Date: Tue, 26 Jul 2016 19:22:49 +0000 (+0100) Subject: Note cipher BIO write errors too. X-Git-Tag: OpenSSL_1_1_0-pre6~68 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=976ef6adcc157233fb641ca99e2424630ef1814f;p=oweals%2Fopenssl.git Note cipher BIO write errors too. Reviewed-by: Rich Salz --- 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;