From 292b2f1d13c64aaa40dbf543139bb125af1aabf7 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 10 Jun 1996 06:08:50 +0000 Subject: minor patch to allow host announcements to remote subnets (This used to be commit e264a670e917102cfdbfce9ae76fbc4d548ddae4) --- source3/namedb.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'source3/namedb.c') diff --git a/source3/namedb.c b/source3/namedb.c index 11eea6976d..ea5b13a800 100644 --- a/source3/namedb.c +++ b/source3/namedb.c @@ -339,6 +339,8 @@ struct work_record *find_workgroupstruct(struct subnet_record *d, if ((work = make_workgroup(name))) { + work->needelection = False; + if (lp_preferred_master() && strequal(lp_workgroup(), name) && d->my_interface) @@ -347,10 +349,6 @@ struct work_record *find_workgroupstruct(struct subnet_record *d, work->needelection = True; work->ElectionCriterion |= (1<<3); } - if (!d->my_interface) - { - work->needelection = False; - } add_workgroup(work, d); return(work); } -- cgit