summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/nameannounce.c2
-rw-r--r--source3/nameelect.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/nameannounce.c b/source3/nameannounce.c
index a1eae127a2..8f2005a73d 100644
--- a/source3/nameannounce.c
+++ b/source3/nameannounce.c
@@ -403,7 +403,7 @@ void announce_master(time_t t)
for (d = subnetlist; d; d = d->next)
{
/* Try and find our workgroup on this subnet */
- struct work_record *work = find_workgroupstruct(d, lp_workgroup(), True);
+ struct work_record *work = find_workgroupstruct(d, lp_workgroup(), False);
if (work)
{
diff --git a/source3/nameelect.c b/source3/nameelect.c
index a11d0fb786..d3804f2b71 100644
--- a/source3/nameelect.c
+++ b/source3/nameelect.c
@@ -77,7 +77,7 @@ void check_master_browser(time_t t)
for (work = d->workgrouplist; work; work = work->next)
{
- if (!AM_MASTER(work))
+ if (strequal(work->work_group, lp_workgroup()) && !AM_MASTER(work))
{
if (lp_preferred_master())
{