summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorihsinme <61293369+ihsinme@users.noreply.github.com>2020-11-25 22:09:33 +0300
committerTomas Mraz <tmraz@fedoraproject.org>2020-11-27 13:58:59 +0100
commita614af95531dd9f168aa4b71bd1195b4fdfe1794 (patch)
tree00131bd64948c84f38f6ea4b806c1647e2e238cf
parent90c046be9c61c012f8760d429f6254ef3c796a0a (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)
-rw-r--r--crypto/evp/bio_ok.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/bio_ok.c b/crypto/evp/bio_ok.c
index f2d66ab129..3d31f19829 100644
--- a/crypto/evp/bio_ok.c
+++ b/crypto/evp/bio_ok.c
@@ -204,7 +204,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);