[openssl] openssl-3.0 update

dev at ddvo.net dev at ddvo.net
Thu Dec 9 06:49:57 UTC 2021


The branch openssl-3.0 has been updated
       via  4ed2db591a42fb99401f9b0ff17f6644797ae743 (commit)
      from  35f45ae0078f9972a4ea887f59670a7e8f346f94 (commit)


- Log -----------------------------------------------------------------
commit 4ed2db591a42fb99401f9b0ff17f6644797ae743
Author: Dr. David von Oheimb <David.von.Oheimb at siemens.com>
Date:   Tue Dec 7 17:49:05 2021 +0100

    OSSL_CMP_MSG_read(): Fix mem leak on file read error
    
    Reviewed-by: Paul Dale <pauli at openssl.org>
    Reviewed-by: Tomas Mraz <tomas at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/17225)
    
    (cherry picked from commit d580c2790f9f304533a3eda2a9cf6b8eb22830c3)

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

Summary of changes:
 crypto/cmp/cmp_msg.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/crypto/cmp/cmp_msg.c b/crypto/cmp/cmp_msg.c
index 10ef4cd922..84a272fe2b 100644
--- a/crypto/cmp/cmp_msg.c
+++ b/crypto/cmp/cmp_msg.c
@@ -1100,9 +1100,8 @@ OSSL_CMP_MSG *OSSL_CMP_MSG_read(const char *file, OSSL_LIB_CTX *libctx,
         return NULL;
     }
 
-    if ((bio = BIO_new_file(file, "rb")) == NULL)
-        return NULL;
-    if (d2i_OSSL_CMP_MSG_bio(bio, &msg) == NULL) {
+    if ((bio = BIO_new_file(file, "rb")) == NULL
+            || d2i_OSSL_CMP_MSG_bio(bio, &msg) == NULL) {
         OSSL_CMP_MSG_free(msg);
         msg = NULL;
     }


More information about the openssl-commits mailing list