[SCM] Samba Shared Repository - branch master updated

Jeremy Allison jra at samba.org
Tue Sep 11 19:01:01 MDT 2012


The branch, master has been updated
       via  bd2f160 Make metze happy and the code clearer :-).
      from  4e595f4 nsswitch: fix crash on null pam change pw response

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


- Log -----------------------------------------------------------------
commit bd2f1604d73f05f3b2f151a81f09824c7bb99ab5
Author: Jeremy Allison <jra at samba.org>
Date:   Tue Sep 11 16:16:37 2012 -0700

    Make metze happy and the code clearer :-).
    
    Ensure we know after the destructor fires we're never going to
    look at this again.
    
    Autobuild-User(master): Jeremy Allison <jra at samba.org>
    Autobuild-Date(master): Wed Sep 12 03:00:21 CEST 2012 on sn-devel-104

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

Summary of changes:
 source3/smbd/smb2_sesssetup.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/smbd/smb2_sesssetup.c b/source3/smbd/smb2_sesssetup.c
index 61b5519..2599d2a 100644
--- a/source3/smbd/smb2_sesssetup.c
+++ b/source3/smbd/smb2_sesssetup.c
@@ -446,6 +446,12 @@ struct smbd_smb2_session_setup_state {
 static int pp_self_ref_destructor(struct smbd_smb2_session_setup_state **pp_state)
 {
 	(*pp_state)->session = NULL;
+	/*
+	 * To make things clearer, ensure the pp_self_ref
+	 * pointer is nulled out. We're never going to
+	 * access this again.
+	 */
+	(*pp_state)->pp_self_ref = NULL;
 	return 0;
 }
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list