diff options
author | ihciah <ihciah@gmail.com> | 2023-05-11 09:30:14 +0000 |
---|---|---|
committer | Todd Short <todd.short@me.com> | 2023-08-04 10:30:58 -0400 |
commit | bcbc7d60679b79fa4347e33c865306dce41ed985 (patch) | |
tree | 6c679fda97f2d353cb6106ab7889a4ca692474c9 /crypto/comp/c_zstd.c | |
parent | e1b6ecbab41514f45e9c355d01400691f74041c4 (diff) |
bio: pass flags on BIO_ctrl to make flush retriable
Co-authored-by: suikammd <suikalala@gmail.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from https://github.com/openssl/openssl/pull/21298)
Diffstat (limited to 'crypto/comp/c_zstd.c')
-rw-r--r-- | crypto/comp/c_zstd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/comp/c_zstd.c b/crypto/comp/c_zstd.c index 17dc0f64a4..7f6c5cc72c 100644 --- a/crypto/comp/c_zstd.c +++ b/crypto/comp/c_zstd.c @@ -762,8 +762,10 @@ static long bio_zstd_ctrl(BIO *b, int cmd, long num, void *ptr) case BIO_CTRL_FLUSH: ret = bio_zstd_flush(b); - if (ret > 0) + if (ret > 0) { ret = BIO_flush(next); + BIO_copy_next_retry(b); + } break; case BIO_C_SET_BUFF_SIZE: |