diff options
Diffstat (limited to 'source3/smbd/oplock.c')
-rw-r--r-- | source3/smbd/oplock.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c index 366b4d0fec..4f26eaf7f2 100644 --- a/source3/smbd/oplock.c +++ b/source3/smbd/oplock.c @@ -470,6 +470,9 @@ static void wait_before_sending_break(BOOL local_request) struct timeval cur_tv; long wait_left = (long)lp_oplock_break_wait_time(); + if (wait_left == 0) + return; + GetTimeOfDay(&cur_tv); wait_left -= ((cur_tv.tv_sec - smb_last_time.tv_sec)*1000) + |