diff options
author | Stefan Metzmacher <metze@samba.org> | 2019-08-15 18:18:50 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2019-09-09 14:23:41 +0000 |
commit | 6e30a89b3f00ad55391454fbaa1272074e1962f0 (patch) | |
tree | 6094066a3f8796d0b770eabb50171707ae5474ef | |
parent | 312327106271abafeb53e62dfb71a38bf93e2d41 (diff) | |
download | samba-6e30a89b3f00ad55391454fbaa1272074e1962f0.tar.gz |
s3:blocking: call smbd_smb1_do_locks_setup_timeout() also in smbd_smb1_do_locks_try()
This is a noop if smbd_smb1_do_locks_setup_timeout() was called before.
But it allows us to use smbd_smb1_do_locks_try() in
smbd_smb1_do_locks_send() in a following commit.
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>
-rw-r--r-- | source3/smbd/blocking.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/smbd/blocking.c b/source3/smbd/blocking.c index 39042d2f46d..77dfc5a3d44 100644 --- a/source3/smbd/blocking.c +++ b/source3/smbd/blocking.c @@ -545,6 +545,11 @@ static void smbd_smb1_do_locks_try(struct tevent_req *req) goto done; } + smbd_smb1_do_locks_setup_timeout(state, &state->locks[state->blocker]); + DBG_DEBUG("timeout=%"PRIu32", blocking_smblctx=%"PRIu64"\n", + state->timeout, + blocking_smblctx); + /* * The client specified timeout expired * avoid further retries. |