From: Jeremy Allison Date: Thu, 26 Mar 2009 19:13:28 +0000 (-0700) Subject: Fix bug #6224 - nmbd waits 5 minutes at startup before checking if it needs to run... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=857c2e4407a0f4fcee721372ffed5366bc3051f9;p=thirdparty%2Fsamba.git 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. --- diff --git a/source/nmbd/nmbd_elections.c b/source/nmbd/nmbd_elections.c index b50d215b91d..1ed64f4059f 100644 --- a/source/nmbd/nmbd_elections.c +++ b/source/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;