[SCM] Samba Shared Repository - branch master updated

Jeremy Allison jra at samba.org
Wed Jul 3 19:25:02 UTC 2019


The branch, master has been updated
       via  1b39c563546 winbind: fix crash in fill_domain_username_talloc() if specified username is NULL
      from  4992c9bbbb8 docs: Correct 'net ads dns unregister --help' description

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


- Log -----------------------------------------------------------------
commit 1b39c563546aed677d0ac99b9fb8b44a5b48c1e4
Author: Ralf Habacker <ralf.habacker at freenet.de>
Date:   Mon Jun 24 09:25:48 2019 +0200

    winbind: fix crash in fill_domain_username_talloc() if specified username is NULL
    
    Signed-off-by: Ralf Habacker <ralf.habacker at freenet.de>
    Reviewed-by: Andreas Schneider <asn at samba.org>
    Reviewed-by: Jeremy Allison <jra at samba.org>
    
    Autobuild-User(master): Jeremy Allison <jra at samba.org>
    Autobuild-Date(master): Wed Jul  3 19:24:52 UTC 2019 on sn-devel-184

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

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


Changeset truncated at 500 lines:

diff --git a/source3/winbindd/winbindd_util.c b/source3/winbindd/winbindd_util.c
index b79f90fb0ce..cc4c3f7391a 100644
--- a/source3/winbindd/winbindd_util.c
+++ b/source3/winbindd/winbindd_util.c
@@ -1693,6 +1693,10 @@ char *fill_domain_username_talloc(TALLOC_CTX *mem_ctx,
 		can_assume = false;
 	}
 
+	if (user == NULL) {
+		return NULL;
+	}
+
 	tmp_user = talloc_strdup(mem_ctx, user);
 	if (!strlower_m(tmp_user)) {
 		TALLOC_FREE(tmp_user);


-- 
Samba Shared Repository



More information about the samba-cvs mailing list