Just fixed a *serious* bug in nameelect.c to do with local
authorJeremy Allison <jra@samba.org>
Fri, 21 Nov 1997 21:06:40 +0000 (21:06 +0000)
committerJeremy Allison <jra@samba.org>
Fri, 21 Nov 1997 21:06:40 +0000 (21:06 +0000)
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)

source3/nameelect.c

index ae4dc0857ab2baf76d378f14ce26f21121835a15..c5d145f979179c1c5e5a91406185717d50e853b5 100644 (file)
@@ -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;