diff options
author | Andrew Tridgell <tridge@samba.org> | 1996-06-10 06:08:50 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1996-06-10 06:08:50 +0000 |
commit | 292b2f1d13c64aaa40dbf543139bb125af1aabf7 (patch) | |
tree | 9b8e12ff7c3808fc2e984649e86b386725a6fb46 /source3/namedb.c | |
parent | 53409e5e34fce56bc18880ba59b3caf60dcbc3be (diff) | |
download | samba-292b2f1d13c64aaa40dbf543139bb125af1aabf7.tar.gz samba-292b2f1d13c64aaa40dbf543139bb125af1aabf7.tar.bz2 samba-292b2f1d13c64aaa40dbf543139bb125af1aabf7.zip |
minor patch to allow host announcements to remote subnets
(This used to be commit e264a670e917102cfdbfce9ae76fbc4d548ddae4)
Diffstat (limited to 'source3/namedb.c')
-rw-r--r-- | source3/namedb.c | 6 |
1 files changed, 2 insertions, 4 deletions
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); } |