[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha7-1470-g8e490d2

Günther Deschner gd at samba.org
Thu May 7 11:33:36 GMT 2009


The branch, master has been updated
       via  8e490d2fa1c52be5da331df0b314508f77ec1f6e (commit)
      from  949cd77ca2529249dc8cd04740c2ca342fb0c283 (commit)

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


- Log -----------------------------------------------------------------
commit 8e490d2fa1c52be5da331df0b314508f77ec1f6e
Author: Günther Deschner <gd at samba.org>
Date:   Thu May 7 13:32:41 2009 +0200

    s3-credentials: protect netlogon_creds_server_step() against NULL creds.
    
    Found by SCHANNEL torture tests.
    
    Guenther

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

Summary of changes:
 source3/libsmb/credentials.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/libsmb/credentials.c b/source3/libsmb/credentials.c
index 0d7bde0..9dc0b9f 100644
--- a/source3/libsmb/credentials.c
+++ b/source3/libsmb/credentials.c
@@ -257,6 +257,10 @@ bool netlogon_creds_server_step(struct dcinfo *dc,
 	bool ret;
 	struct dcinfo tmp_dc = *dc;
 
+	if (!received_cred || !cred_out) {
+		return false;
+	}
+
 	/* Do all operations on a temporary copy of the dc,
 	   which we throw away if the checks fail. */
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list