s3: nmbd: Stop nmbd network announce storm.
commit1d1cd28adaba691ba434a47031fb52ff8887c728
authorAndrew Bartlett <abartlet@samba.org>
Mon, 17 Sep 2018 19:45:14 +0000 (17 12:45 -0700)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 19 Sep 2018 20:25:05 +0000 (19 22:25 +0200)
tree65947554709701eb7f1c85a2509cc09f079fbbda
parent2e59a3343fe162639b103f35ac87b3193927fab5
s3: nmbd: Stop nmbd network announce storm.

Correct fix for. On announce, work->lastannounce_time is set
to current time t, so we must check that 't >= work->lastannounce_time',
not 't > work->lastannounce_time' otherwise we end up not
doing the comparison, and always doing the announce.

Reported by Reuben Farrelly

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13620

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Revviewe-by: Andreas Schneider <asn@samba.org>
source3/nmbd/nmbd_sendannounce.c