[openssl] OpenSSL_1_1_1-stable update

tmraz at fedoraproject.org tmraz at fedoraproject.org
Fri Nov 27 13:00:40 UTC 2020


The branch OpenSSL_1_1_1-stable has been updated
       via  0c60676338f1e25faaa44117238d8e35e507feee (commit)
      from  8e813c085ac43ca6a58a20f7982b26ed31dc326a (commit)


- Log -----------------------------------------------------------------
commit 0c60676338f1e25faaa44117238d8e35e507feee
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)
    
    (cherry picked from commit a614af95531dd9f168aa4b71bd1195b4fdfe1794)

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

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


More information about the openssl-commits mailing list