git.samba.org
/
gd
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ee25cd
)
Just fixed a *serious* bug in nameelect.c to do with local
author
Jeremy Allison
<jra@samba.org>
Fri, 21 Nov 1997 21:06:40 +0000
(21:06 +0000)
committer
Jeremy 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.
source/nameelect.c
patch
|
blob
|
history
diff --git
a/source/nameelect.c
b/source/nameelect.c
index ae4dc0857ab2baf76d378f14ce26f21121835a15..c5d145f979179c1c5e5a91406185717d50e853b5 100644
(file)
--- a/
source/nameelect.c
+++ b/
source/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;