svn commit: samba r16831 - in branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules: .

abartlet at samba.org abartlet at samba.org
Thu Jul 6 06:04:06 GMT 2006


Author: abartlet
Date: 2006-07-06 06:04:06 +0000 (Thu, 06 Jul 2006)
New Revision: 16831

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

Log:
Use a valid memory context (found by the IBM checker).

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/samldb.c


Changeset:
Modified: branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/samldb.c
===================================================================
--- branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/samldb.c	2006-07-06 05:55:26 UTC (rev 16830)
+++ branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/samldb.c	2006-07-06 06:04:06 UTC (rev 16831)
@@ -307,8 +307,8 @@
 		}
 		talloc_free(res);
 	} else {
-		ldb_set_errstring(module->ldb, talloc_asprintf(module, "samldb_notice_sid: error searching to see if sid %s is in use: %s\n", 
-							       dom_sid_string(dom_res, sid), 
+		ldb_set_errstring(module->ldb, talloc_asprintf(mem_ctx, "samldb_notice_sid: error searching to see if sid %s is in use: %s\n", 
+							       dom_sid_string(mem_ctx, sid), 
 							       ldb_errstring(module->ldb)));
 		return ret;
 	}



More information about the samba-cvs mailing list