[SCM] Samba Shared Repository - branch v3-6-test updated

Karolin Seeger kseeger at samba.org
Mon Oct 29 04:39:10 MDT 2012


The branch, v3-6-test has been updated
       via  11b798c pam_winbind: fix segfault in pam_sm_authenticate()
      from  0b06cf3 WHATSNEW: Start release notes for Samba 3.6.10.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-6-test


- Log -----------------------------------------------------------------
commit 11b798cdd0056e55a4958fc049a464f680f3c149
Author: David Disseldorp <ddiss at suse.de>
Date:   Wed Nov 2 18:39:03 2011 +0100

    pam_winbind: fix segfault in pam_sm_authenticate()
    
    Ensure the potentially null winbind context is not dereferenced on
    cleanup.
    
    https://bugzilla.samba.org/show_bug.cgi?id=8564

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

Summary of changes:
 nsswitch/pam_winbind.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/nsswitch/pam_winbind.c b/nsswitch/pam_winbind.c
index fc7cdca..3257101 100644
--- a/nsswitch/pam_winbind.c
+++ b/nsswitch/pam_winbind.c
@@ -2735,9 +2735,10 @@ out:
 		_pam_free_data_info3(pamh);
 	}
 
-	_PAM_LOG_FUNCTION_LEAVE("pam_sm_authenticate", ctx, retval);
-
-	TALLOC_FREE(ctx);
+	if (ctx != NULL) {
+		_PAM_LOG_FUNCTION_LEAVE("pam_sm_authenticate", ctx, retval);
+		TALLOC_FREE(ctx);
+	}
 
 	return retval;
 }


-- 
Samba Shared Repository


More information about the samba-cvs mailing list