svn commit: samba r4326 - in branches/SAMBA_4_0/source/libcli/auth: .

metze at samba.org metze at samba.org
Tue Dec 21 15:01:53 GMT 2004


Author: metze
Date: 2004-12-21 15:01:53 +0000 (Tue, 21 Dec 2004)
New Revision: 4326

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

Log:
fix memory leak

metze

Modified:
   branches/SAMBA_4_0/source/libcli/auth/spnego.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/auth/spnego.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/auth/spnego.c	2004-12-21 12:39:39 UTC (rev 4325)
+++ branches/SAMBA_4_0/source/libcli/auth/spnego.c	2004-12-21 15:01:53 UTC (rev 4326)
@@ -479,7 +479,7 @@
 			spnego_out.type = SPNEGO_NEG_TOKEN_INIT;
 			spnego_out.negTokenInit.mechTypes = mechlist;
 			spnego_out.negTokenInit.reqFlags = 0;
-			spnego_out.negTokenInit.mechListMIC = data_blob(mechListMIC, strlen(mechListMIC));
+			spnego_out.negTokenInit.mechListMIC = data_blob_string_const(mechListMIC);
 			spnego_out.negTokenInit.mechToken = unwrapped_out;
 			
 			if (spnego_write_data(out_mem_ctx, out, &spnego_out) == -1) {



More information about the samba-cvs mailing list