diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-12-30 20:08:52 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:49:05 -0500 |
commit | 0391b1cb3a1527aed5beefbdda67a6ce5062bbab (patch) | |
tree | ff995fa2d5056d0b7c44fa09965fd10eb7e1839c /source4/wrepl_server/wrepl_server.c | |
parent | eef64ba0344f2a6ff95bbe09a213f9bc8751b020 (diff) | |
download | samba-0391b1cb3a1527aed5beefbdda67a6ce5062bbab.tar.gz samba-0391b1cb3a1527aed5beefbdda67a6ce5062bbab.tar.bz2 samba-0391b1cb3a1527aed5beefbdda67a6ce5062bbab.zip |
r12617: create a winsdb_handle and pass that arround,
so we later can hang the local owner address, on this handle too
metze
(This used to be commit 49ba4cc11144671cafcbe2967954bfd786ea6e76)
Diffstat (limited to 'source4/wrepl_server/wrepl_server.c')
-rw-r--r-- | source4/wrepl_server/wrepl_server.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/wrepl_server/wrepl_server.c b/source4/wrepl_server/wrepl_server.c index 5f182cd513..2682ca6721 100644 --- a/source4/wrepl_server/wrepl_server.c +++ b/source4/wrepl_server/wrepl_server.c @@ -172,7 +172,7 @@ BOOL wreplsrv_is_our_address(struct wreplsrv_service *service, const char *addre uint64_t wreplsrv_local_max_version(struct wreplsrv_service *service) { int ret; - struct ldb_context *ldb = service->wins_db; + struct ldb_context *ldb = service->wins_db->ldb; struct ldb_dn *dn; struct ldb_result *res = NULL; TALLOC_CTX *tmp_ctx = talloc_new(service); @@ -306,6 +306,7 @@ static NTSTATUS wreplsrv_load_table(struct wreplsrv_service *service) int ret; NTSTATUS status; TALLOC_CTX *tmp_ctx = talloc_new(service); + struct ldb_context *ldb = service->wins_db->ldb; int i; const char *wins_owner; uint64_t version; @@ -316,7 +317,7 @@ static NTSTATUS wreplsrv_load_table(struct wreplsrv_service *service) }; /* find the record in the WINS database */ - ret = ldb_search(service->wins_db, NULL, LDB_SCOPE_SUBTREE, + ret = ldb_search(ldb, NULL, LDB_SCOPE_SUBTREE, "(objectClass=winsRecord)", attrs, &res); status = NT_STATUS_INTERNAL_DB_CORRUPTION; if (ret != LDB_SUCCESS) goto failed; |