s3:smb2_lock: let smbd_smb2_lock_try() explicitly check for the retry condition
authorStefan Metzmacher <metze@samba.org>
Tue, 13 Aug 2019 14:39:41 +0000 (16:39 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 9 Sep 2019 14:23:40 +0000 (14:23 +0000)
commit7f77e0b4e9878f1f3515206d052adc012e26aafb
tree8515faf7ad81d71027aa3a7ad40dd43b3f31acfe
parent39d514cdc358f175d0968f4a78f8f2f05a6c1707
s3:smb2_lock: let smbd_smb2_lock_try() explicitly check for the retry condition

This makes it possible to reuse _try() in the _send() function in the
next commit.

We should not retry forever on a hard error.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/smbd/smb2_lock.c