mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
smbd: First watch, then defer
We exit if any of these if-statement fails, so a simple swap should not make a difference. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
0ead434b84
commit
0c2e763aaa
@ -1580,11 +1580,6 @@ static void defer_open(struct share_mode_lock *lck,
|
||||
|
||||
*open_rec = *state;
|
||||
|
||||
if (!push_deferred_open_message_smb(req, request_time, timeout,
|
||||
state->id, open_rec)) {
|
||||
TALLOC_FREE(lck);
|
||||
exit_server("push_deferred_open_message_smb failed");
|
||||
}
|
||||
if (lck) {
|
||||
struct defer_open_state *watch_state;
|
||||
struct tevent_req *watch_req;
|
||||
@ -1614,6 +1609,12 @@ static void defer_open(struct share_mode_lock *lck,
|
||||
timeval_sum(&request_time, &timeout));
|
||||
SMB_ASSERT(ret);
|
||||
}
|
||||
|
||||
if (!push_deferred_open_message_smb(req, request_time, timeout,
|
||||
state->id, open_rec)) {
|
||||
TALLOC_FREE(lck);
|
||||
exit_server("push_deferred_open_message_smb failed");
|
||||
}
|
||||
}
|
||||
|
||||
static void defer_open_done(struct tevent_req *req)
|
||||
|
Loading…
Reference in New Issue
Block a user