summaryrefslogtreecommitdiff
path: root/source4/cldap_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-20 00:59:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:29:45 -0500
commit338c3f8523d5db2cba1b79f94ff0cecabcd9e9cd (patch)
tree9cbd8fa10fbb46b70fe1a2783bc30689f3d652ba /source4/cldap_server
parentf650ea10120d41ceff8ea04975fea7637cb45a0a (diff)
downloadsamba-338c3f8523d5db2cba1b79f94ff0cecabcd9e9cd.tar.gz
samba-338c3f8523d5db2cba1b79f94ff0cecabcd9e9cd.tar.bz2
samba-338c3f8523d5db2cba1b79f94ff0cecabcd9e9cd.zip
r8625: move the ldb_wrap logic into the ldb code. This logic is meant to
avoid the horrors of posix locking, but it was preventing us having an ldb open twice with different options. Now each ldb open of the same file shares the same underlying tdb, but uses a different ldb structure (This used to be commit 4e090c66dfa1d2764e4693578d3845be3b8893f6)
Diffstat (limited to 'source4/cldap_server')
-rw-r--r--source4/cldap_server/netlogon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/cldap_server/netlogon.c b/source4/cldap_server/netlogon.c
index 3f6c8d4972..3e99fe80b8 100644
--- a/source4/cldap_server/netlogon.c
+++ b/source4/cldap_server/netlogon.c
@@ -55,7 +55,7 @@ static NTSTATUS cldapd_netlogon_fill(struct cldapd_server *cldapd,
const char *pdc_ip;
if (cldapd->samctx == NULL) {
- cldapd->samctx = samdb_connect(mem_ctx);
+ cldapd->samctx = samdb_connect(cldapd);
if (cldapd->samctx == NULL) {
DEBUG(2,("Unable to open sam in cldap netlogon reply\n"));
return NT_STATUS_INTERNAL_DB_CORRUPTION;