[SCM] Samba Shared Repository - branch master updated

Jeremy Allison jra at samba.org
Mon Nov 29 19:41:01 UTC 2021


The branch, master has been updated
       via  cbf312f02bc s3:winbind: Fix possible NULL pointer dereference
      from  90febd2a33b s4:mit-kdb: Force canonicalization for looking up principals

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit cbf312f02bc86f9325fb89f6f5441bc61fd3974f
Author: Andreas Schneider <asn at samba.org>
Date:   Tue Nov 23 15:48:57 2021 +0100

    s3:winbind: Fix possible NULL pointer dereference
    
    BUG: https://bugzilla.redhat.com/show_bug.cgi?id=2019888
    
    Signed-off-by: Andreas Schneider <asn at samba.org>
    Rewiewed-by: Jeremy Allison <jra at samba.org>
    
    Autobuild-User(master): Jeremy Allison <jra at samba.org>
    Autobuild-Date(master): Mon Nov 29 19:40:50 UTC 2021 on sn-devel-184

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

Summary of changes:
 source3/winbindd/winbindd_util.c | 3 +++
 1 file changed, 3 insertions(+)


Changeset truncated at 500 lines:

diff --git a/source3/winbindd/winbindd_util.c b/source3/winbindd/winbindd_util.c
index a8c510fafc6..175e05ae3ad 100644
--- a/source3/winbindd/winbindd_util.c
+++ b/source3/winbindd/winbindd_util.c
@@ -1784,6 +1784,9 @@ char *fill_domain_username_talloc(TALLOC_CTX *mem_ctx,
 	}
 
 	tmp_user = talloc_strdup(mem_ctx, user);
+	if (tmp_user == NULL) {
+		return NULL;
+	}
 	if (!strlower_m(tmp_user)) {
 		TALLOC_FREE(tmp_user);
 		return NULL;


-- 
Samba Shared Repository



More information about the samba-cvs mailing list