summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1997-11-21 21:06:40 +0000
committerJeremy Allison <jra@samba.org>1997-11-21 21:06:40 +0000
commit5a1c907d3cb6446b5158028582bf9e8a70ff0b02 (patch)
tree4226bf6002481ed8e63152f46896183f695b0ffc
parent4e92c7d1a3b543e48c2b09f8b78352a702c915aa (diff)
downloadsamba-5a1c907d3cb6446b5158028582bf9e8a70ff0b02.tar.gz
samba-5a1c907d3cb6446b5158028582bf9e8a70ff0b02.tar.bz2
samba-5a1c907d3cb6446b5158028582bf9e8a70ff0b02.zip
Just fixed a *serious* bug in nameelect.c to do with local
master browsers. Once we have become a local master, we would *NEVER* stop announcing ourselves as such. This has serious implications for the new nmbd code. Jeremy. (This used to be commit 8e8d239d9e112bf1eb32f4ec1657ff505a34d934)
-rw-r--r--source3/nameelect.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/nameelect.c b/source3/nameelect.c
index ae4dc0857a..c5d145f979 100644
--- a/source3/nameelect.c
+++ b/source3/nameelect.c
@@ -599,6 +599,7 @@ void unbecome_local_master(struct subnet_record *d, struct work_record *work,
/* no longer a master browser of any sort */
+ work->ServerType &= ~SV_TYPE_MASTER_BROWSER;
work->ServerType |= SV_TYPE_POTENTIAL_BROWSER;
work->ElectionCriterion &= ~0x4;
work->mst_state = MST_POTENTIAL;