summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-07-15 20:39:00 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:10 -0500
commitd2b11041b23f588b0f5baa1165e15b8cebb50dba (patch)
tree30501acec86a7a52a05c6957a9dc4d9e444c3fed
parentf512695ea4659a9e384ed0c6d7bfe2a705012e78 (diff)
downloadsamba-d2b11041b23f588b0f5baa1165e15b8cebb50dba.tar.gz
samba-d2b11041b23f588b0f5baa1165e15b8cebb50dba.tar.bz2
samba-d2b11041b23f588b0f5baa1165e15b8cebb50dba.zip
r17075: Even without talloc_steal you can still create memory problems.... ;-)
(This used to be commit 03e9924f5c82537ca72c03e3b0f70ea002e76934)
-rw-r--r--source3/passdb/lookup_sid.c2
1 files changed, 1 insertions, 1 deletions
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;