diff options
author | ihsinme <61293369+ihsinme@users.noreply.github.com> | 2020-11-25 20:09:33 +0100 |
---|---|---|
committer | Tomas Mraz <tmraz@fedoraproject.org> | 2020-11-27 13:58:59 +0100 |
commit | a614af95531dd9f168aa4b71bd1195b4fdfe1794 (patch) | |
tree | 00131bd64948c84f38f6ea4b806c1647e2e238cf /crypto/evp/bio_ok.c | |
parent | Remove d2i_DHparams.pod and move documentation to d2i_RSAPrivateKey.pod (diff) | |
download | openssl-a614af95531dd9f168aa4b71bd1195b4fdfe1794.tar.xz openssl-a614af95531dd9f168aa4b71bd1195b4fdfe1794.zip |
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)
Diffstat (limited to '')
-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 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); |