diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2016-07-26 20:22:49 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2016-07-26 22:42:31 +0100 |
commit | 976ef6adcc157233fb641ca99e2424630ef1814f (patch) | |
tree | 1ecb02fddd34c36e5aa6cea5e653d044308b591c /crypto | |
parent | e125c12f5718cf589b3469aa40a54421a2536bd2 (diff) | |
download | openssl-976ef6adcc157233fb641ca99e2424630ef1814f.zip openssl-976ef6adcc157233fb641ca99e2424630ef1814f.tar.gz openssl-976ef6adcc157233fb641ca99e2424630ef1814f.tar.bz2 |
Note cipher BIO write errors too.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/evp/bio_enc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/evp/bio_enc.c b/crypto/evp/bio_enc.c index d1422f0..5bc5d65 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; |