svn commit: samba r4042 - in branches/SAMBA_4_0/source/librpc/rpc: .

metze at samba.org metze at samba.org
Thu Dec 2 12:12:26 GMT 2004


Author: metze
Date: 2004-12-02 12:12:26 +0000 (Thu, 02 Dec 2004)
New Revision: 4042

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4042

Log:
fix segfault on server schannel connections

metze

Modified:
   branches/SAMBA_4_0/source/librpc/rpc/dcerpc_schannel.c


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/rpc/dcerpc_schannel.c
===================================================================
--- branches/SAMBA_4_0/source/librpc/rpc/dcerpc_schannel.c	2004-12-02 11:40:18 UTC (rev 4041)
+++ branches/SAMBA_4_0/source/librpc/rpc/dcerpc_schannel.c	2004-12-02 12:12:26 UTC (rev 4042)
@@ -258,7 +258,10 @@
 { 
 	struct dcerpc_schannel_state *dce_schan_state = gensec_security->private_data;
 
-	*creds = dce_schan_state->creds;
+	*creds = talloc_reference(mem_ctx, dce_schan_state->creds);
+	if (!*creds) {
+		return NT_STATUS_NO_MEMORY;
+	}
 	return NT_STATUS_OK;
 }
 		



More information about the samba-cvs mailing list