summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-10-12 10:05:32 +1100
committerAndrew Bartlett <abartlet@samba.org>2010-10-12 02:54:16 +0000
commit911169451b0f801c3fbe4c698d74e9801d973ee0 (patch)
tree11410390843bbcb2b1c288fc42d03d7d96cf6209 /source4
parent8beaa2924205cf6b01bc6183f7795571a3966ba5 (diff)
downloadsamba-911169451b0f801c3fbe4c698d74e9801d973ee0.tar.gz
samba-911169451b0f801c3fbe4c698d74e9801d973ee0.tar.bz2
samba-911169451b0f801c3fbe4c698d74e9801d973ee0.zip
s4-credentials Allocate ldb result on correct memory context
Diffstat (limited to 'source4')
-rw-r--r--source4/auth/credentials/credentials_secrets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/auth/credentials/credentials_secrets.c b/source4/auth/credentials/credentials_secrets.c
index 0f30dc5e1b..8c8043cad7 100644
--- a/source4/auth/credentials/credentials_secrets.c
+++ b/source4/auth/credentials/credentials_secrets.c
@@ -83,7 +83,7 @@ _PUBLIC_ NTSTATUS cli_credentials_set_secrets(struct cli_credentials *cred,
}
}
- ldb_ret = dsdb_search_one(ldb, ldb, &msg,
+ ldb_ret = dsdb_search_one(ldb, mem_ctx, &msg,
ldb_dn_new(mem_ctx, ldb, base),
LDB_SCOPE_SUBTREE,
NULL, 0, "%s", filter);