[openssl] master update

tomas at openssl.org tomas at openssl.org
Wed Apr 21 07:00:30 UTC 2021

The branch master has been updated
       via  a2502862f679c82b794869ac88ed0d8ca7bc291c (commit)
      from  4e030ed45dbf56be2f09d86f76f697ae6a0c567f (commit)

- Log -----------------------------------------------------------------
commit a2502862f679c82b794869ac88ed0d8ca7bc291c
Author: Petr Gotthard <petr.gotthard at centrum.cz>
Date:   Sat Apr 17 14:58:30 2021 +0200

    Fix memory leak in X509_REQ
    The propq is strdup'ed in X509_REQ_new_ex, but never freed.
    Reviewed-by: Shane Lontis <shane.lontis at oracle.com>
    Reviewed-by: Tomas Mraz <tomas at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/14907)


Summary of changes:
 crypto/x509/x_req.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/crypto/x509/x_req.c b/crypto/x509/x_req.c
index edbe8cd72b..1b4e1587dd 100644
--- a/crypto/x509/x_req.c
+++ b/crypto/x509/x_req.c
@@ -60,6 +60,7 @@ static int req_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
     case ASN1_OP_FREE_POST:
+        OPENSSL_free(ret->propq);
     case ASN1_OP_DUP_POST:

More information about the openssl-commits mailing list