[openssl] master update

tmraz at fedoraproject.org tmraz at fedoraproject.org
Fri Nov 27 12:59:53 UTC 2020


The branch master has been updated
       via  a614af95531dd9f168aa4b71bd1195b4fdfe1794 (commit)
      from  90c046be9c61c012f8760d429f6254ef3c796a0a (commit)


- Log -----------------------------------------------------------------
commit a614af95531dd9f168aa4b71bd1195b4fdfe1794
Author: ihsinme <61293369+ihsinme at users.noreply.github.com>
Date:   Wed Nov 25 22:09:33 2020 +0300

    Update bio_ok.c
    
    CLA: trivial
    
    Reviewed-by: Matt Caswell <matt at openssl.org>
    Reviewed-by: Paul Dale <paul.dale at oracle.com>
    Reviewed-by: Tomas Mraz <tmraz at fedoraproject.org>
    (Merged from https://github.com/openssl/openssl/pull/13515)

-----------------------------------------------------------------------

Summary of changes:
 crypto/evp/bio_ok.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);


More information about the openssl-commits mailing list