diff options
author | ihsinme <61293369+ihsinme@users.noreply.github.com> | 2020-11-25 22:09:33 +0300 |
---|---|---|
committer | Tomas Mraz <tmraz@fedoraproject.org> | 2020-11-27 14:00:27 +0100 |
commit | 0c60676338f1e25faaa44117238d8e35e507feee (patch) | |
tree | 1ea9fcf91dd17e50f363d901d32ce998633f9c9f /crypto/evp | |
parent | 8e813c085ac43ca6a58a20f7982b26ed31dc326a (diff) |
Update bio_ok.c
CLA: trivial
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/13515)
(cherry picked from commit a614af95531dd9f168aa4b71bd1195b4fdfe1794)
Diffstat (limited to 'crypto/evp')
-rw-r--r-- | crypto/evp/bio_ok.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/bio_ok.c b/crypto/evp/bio_ok.c index a77cfb1552..aba305537a 100644 --- a/crypto/evp/bio_ok.c +++ b/crypto/evp/bio_ok.c @@ -203,7 +203,7 @@ static int ok_read(BIO *b, char *out, int outl) /* * copy start of the next block into proper place */ - if (ctx->buf_len_save - ctx->buf_off_save > 0) { + if (ctx->buf_len_save > ctx->buf_off_save) { ctx->buf_len = ctx->buf_len_save - ctx->buf_off_save; memmove(ctx->buf, &(ctx->buf[ctx->buf_off_save]), ctx->buf_len); |