svn commit: samba r17075 - in branches/SAMBA_3_0/source/passdb: .

vlendec at samba.org vlendec at samba.org
Sat Jul 15 20:39:00 GMT 2006


Author: vlendec
Date: 2006-07-15 20:39:00 +0000 (Sat, 15 Jul 2006)
New Revision: 17075

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

Log:
Even without talloc_steal you can still create memory problems.... ;-)
Modified:
   branches/SAMBA_3_0/source/passdb/lookup_sid.c


Changeset:
Modified: branches/SAMBA_3_0/source/passdb/lookup_sid.c
===================================================================
--- branches/SAMBA_3_0/source/passdb/lookup_sid.c	2006-07-15 20:08:40 UTC (rev 17074)
+++ branches/SAMBA_3_0/source/passdb/lookup_sid.c	2006-07-15 20:39:00 UTC (rev 17075)
@@ -357,7 +357,7 @@
 
 	if (ret_domain != NULL) {
 		char *tmp_dom;
-		if (!(tmp_dom = talloc_strdup(tmp_ctx, domain))) {
+		if (!(tmp_dom = talloc_strdup(mem_ctx, domain))) {
 			DEBUG(0, ("talloc failed\n"));
 			TALLOC_FREE(tmp_ctx);
 			return False;



More information about the samba-cvs mailing list