summaryrefslogtreecommitdiff
path: root/source3/nmbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-03-26 12:21:55 -0700
committerJeremy Allison <jra@samba.org>2009-03-26 12:28:40 -0700
commit94ba56b2bdad4782deefc5581e6b6ac5c4eeb258 (patch)
tree831ea50b416890439ff7eb02554166f7a65f3467 /source3/nmbd
parent494e471d747c1e858481fad16cb33574d3e7f985 (diff)
downloadsamba-94ba56b2bdad4782deefc5581e6b6ac5c4eeb258.tar.gz
samba-94ba56b2bdad4782deefc5581e6b6ac5c4eeb258.tar.bz2
samba-94ba56b2bdad4782deefc5581e6b6ac5c4eeb258.zip
Fix bug #6224 - nmbd waits 5 minutes at startup before checking if it needs to run elections
Fix logic bug that causes nmbd to wait 5 minutes before looking for a master browser. This one is *old* :-). Thanks for Simo for bugging me on this. Jeremy.
Diffstat (limited to 'source3/nmbd')
-rw-r--r--source3/nmbd/nmbd_elections.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/source3/nmbd/nmbd_elections.c b/source3/nmbd/nmbd_elections.c
index b50d215b91..1ed64f4059 100644
--- a/source3/nmbd/nmbd_elections.c
+++ b/source3/nmbd/nmbd_elections.c
@@ -130,9 +130,6 @@ void check_master_browser_exists(time_t t)
struct subnet_record *subrec;
const char *workgroup_name = lp_workgroup();
- if (!lastrun)
- lastrun = t;
-
if (t < (lastrun + (CHECK_TIME_MST_BROWSE * 60)))
return;