From d2b11041b23f588b0f5baa1165e15b8cebb50dba Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 15 Jul 2006 20:39:00 +0000 Subject: r17075: Even without talloc_steal you can still create memory problems.... ;-) (This used to be commit 03e9924f5c82537ca72c03e3b0f70ea002e76934) --- source3/passdb/lookup_sid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/passdb') diff --git a/source3/passdb/lookup_sid.c b/source3/passdb/lookup_sid.c index a7a3fdc94d..31bd4ab762 100644 --- a/source3/passdb/lookup_sid.c +++ b/source3/passdb/lookup_sid.c @@ -357,7 +357,7 @@ BOOL lookup_name(TALLOC_CTX *mem_ctx, 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; -- cgit