From 5a1c907d3cb6446b5158028582bf9e8a70ff0b02 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 21 Nov 1997 21:06:40 +0000 Subject: 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) --- source3/nameelect.c | 1 + 1 file changed, 1 insertion(+) 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; -- cgit