}
state->deny_status = NT_STATUS_FILE_LOCK_CONFLICT;
- subreq = dbwrap_watched_watch_send(
- state, state->ev, lck->data->record, blocking_pid);
- if (tevent_req_nomem(subreq, req)) {
- goto done;
- }
- TALLOC_FREE(lck);
- tevent_req_set_callback(subreq, smbd_smb1_do_locks_retry, req);
-
endtime = state->endtime;
if (blocking_smblctx == UINT64_MAX) {
endtime = timeval_min(&endtime, &tmp);
}
+ subreq = dbwrap_watched_watch_send(
+ state, state->ev, lck->data->record, blocking_pid);
+ if (tevent_req_nomem(subreq, req)) {
+ goto done;
+ }
+ TALLOC_FREE(lck);
+ tevent_req_set_callback(subreq, smbd_smb1_do_locks_retry, req);
+
ok = tevent_req_set_endtime(subreq, state->ev, endtime);
if (!ok) {
tevent_req_oom(req);
}
state->deny_status = NT_STATUS_FILE_LOCK_CONFLICT;
- subreq = dbwrap_watched_watch_send(
- state, state->ev, lck->data->record, blocking_pid);
- if (tevent_req_nomem(subreq, req)) {
- goto done;
- }
- TALLOC_FREE(lck);
- tevent_req_set_callback(subreq, smbd_smb1_do_locks_retry, req);
-
endtime = state->endtime;
if (blocking_smblctx == UINT64_MAX) {
endtime = timeval_min(&endtime, &tmp);
}
+ subreq = dbwrap_watched_watch_send(
+ state, state->ev, lck->data->record, blocking_pid);
+ if (tevent_req_nomem(subreq, req)) {
+ goto done;
+ }
+ TALLOC_FREE(lck);
+ tevent_req_set_callback(subreq, smbd_smb1_do_locks_retry, req);
+
ok = tevent_req_set_endtime(subreq, state->ev, endtime);
if (!ok) {
status = NT_STATUS_NO_MEMORY;