diff options
-rw-r--r-- | source3/nmbd/nmbd_browsesync.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/nmbd/nmbd_browsesync.c b/source3/nmbd/nmbd_browsesync.c index b630fd234d..73d953e726 100644 --- a/source3/nmbd/nmbd_browsesync.c +++ b/source3/nmbd/nmbd_browsesync.c @@ -644,6 +644,11 @@ void sync_all_dmbs(time_t t) } } + /* leave if we don't have to do any syncs */ + if (count == 0) { + return; + } + /* sync with a probability of 1/count */ for (work=unicast_subnet->workgrouplist; work; work = work->next) { if (strcmp(lp_workgroup(), work->work_group)) { |