summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-07-06 06:04:06 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:09:48 -0500
commitebea352760482081411dbdfb821c381a9ed276eb (patch)
treeea940d6e87b72566163d2ca22926ac28ee6ebadb /source4
parent12dc0ae78cfc179d3e087f789ce5fb499cf5a29a (diff)
downloadsamba-ebea352760482081411dbdfb821c381a9ed276eb.tar.gz
samba-ebea352760482081411dbdfb821c381a9ed276eb.tar.bz2
samba-ebea352760482081411dbdfb821c381a9ed276eb.zip
r16831: Use a valid memory context (found by the IBM checker).
Andrew Bartlett (This used to be commit 9fdbedafad69e55ef4ccad51c4f002c49e43f372)
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/samdb/ldb_modules/samldb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/samldb.c b/source4/dsdb/samdb/ldb_modules/samldb.c
index c95fb70820..0ac3449488 100644
--- a/source4/dsdb/samdb/ldb_modules/samldb.c
+++ b/source4/dsdb/samdb/ldb_modules/samldb.c
@@ -307,8 +307,8 @@ int samldb_notice_sid(struct ldb_module *module,
}
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;
}