Fix bug #6224 - nmbd waits 5 minutes at startup before checking if it needs to run...
authorJeremy Allison <jra@samba.org>
Thu, 26 Mar 2009 19:21:55 +0000 (12:21 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 26 Mar 2009 19:28:40 +0000 (12:28 -0700)
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.

source3/nmbd/nmbd_elections.c

index b50d215b91d57c37b5287ceb9f076782c932561a..1ed64f4059f7ce18c42b170e3470a0571c941e69 100644 (file)
@@ -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;