[SCM] Samba Shared Repository - branch master updated

Jeremy Allison jra at samba.org
Wed Nov 16 19:30:01 UTC 2022


The branch, master has been updated
       via  f6284877ce0 nsswitch: Fix uninitialized memory when allocating pwdlastset_prelim
      from  ebaafb2375c gitlab-ci: Update Fedora to version 37

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


- Log -----------------------------------------------------------------
commit f6284877ce07fc5ddf4f4e2d824013b645d6e12c
Author: Noel Power <noel.power at suse.com>
Date:   Wed Nov 16 15:37:52 2022 +0000

    nsswitch: Fix uninitialized memory when allocating pwdlastset_prelim
    
    BUG: https://bugzilla.samba.org/show_bug.cgi?id=15224
    Signed-off-by: Noel Power <noel.power at suse.com>
    Reviewed-by: Jeremy Allison <jra at samba.org>
    
    Autobuild-User(master): Jeremy Allison <jra at samba.org>
    Autobuild-Date(master): Wed Nov 16 19:29:21 UTC 2022 on sn-devel-184

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

Summary of changes:
 nsswitch/pam_winbind.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


Changeset truncated at 500 lines:

diff --git a/nsswitch/pam_winbind.c b/nsswitch/pam_winbind.c
index 02a8aa8df98..06a8db21b69 100644
--- a/nsswitch/pam_winbind.c
+++ b/nsswitch/pam_winbind.c
@@ -3228,7 +3228,7 @@ int pam_sm_chauthtok(pam_handle_t * pamh, int flags,
 	if (flags & PAM_PRELIM_CHECK) {
 		time_t *pwdlastset_prelim = NULL;
 
-		pwdlastset_prelim = talloc_array(NULL, time_t, 1);
+		pwdlastset_prelim = talloc_zero(NULL, time_t);
 		if (pwdlastset_prelim == NULL) {
 			_pam_log(ctx, LOG_CRIT,
 				 "password - out of memory");


-- 
Samba Shared Repository



More information about the samba-cvs mailing list