summaryrefslogtreecommitdiff
path: root/source4/wrepl_server/wrepl_server.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-12-30 21:12:15 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:49:05 -0500
commit905c3ff8e1e63f2151f63552e556086968424118 (patch)
treee779dacb6c33f939ccb67effc8cabbfca2ebbbc8 /source4/wrepl_server/wrepl_server.c
parent0391b1cb3a1527aed5beefbdda67a6ce5062bbab (diff)
downloadsamba-905c3ff8e1e63f2151f63552e556086968424118.tar.gz
samba-905c3ff8e1e63f2151f63552e556086968424118.tar.bz2
samba-905c3ff8e1e63f2151f63552e556086968424118.zip
r12618: use our primary interface address or the "winsdb:local_owner" -address
as winsOwner: attrbute for owned records metze (This used to be commit 37dece8304c0b9887740f4d4e8096732045a1785)
Diffstat (limited to 'source4/wrepl_server/wrepl_server.c')
-rw-r--r--source4/wrepl_server/wrepl_server.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/wrepl_server/wrepl_server.c b/source4/wrepl_server/wrepl_server.c
index 2682ca6721..9f1664bc22 100644
--- a/source4/wrepl_server/wrepl_server.c
+++ b/source4/wrepl_server/wrepl_server.c
@@ -264,7 +264,8 @@ NTSTATUS wreplsrv_add_table(struct wreplsrv_service *service,
struct wreplsrv_owner *table = *_table;
struct wreplsrv_owner *cur;
- if (strcmp(WINSDB_OWNER_LOCAL, wins_owner) == 0) {
+ if (strcmp(service->wins_db->local_owner, wins_owner) == 0 ||
+ strcmp("0.0.0.0", wins_owner) == 0) {
return NT_STATUS_OK;
}