diff options
-rw-r--r-- | source3/libsmb/smb2cli_base.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/libsmb/smb2cli_base.c b/source3/libsmb/smb2cli_base.c index e59d9a5d48..f088ceaacd 100644 --- a/source3/libsmb/smb2cli_base.c +++ b/source3/libsmb/smb2cli_base.c @@ -254,6 +254,10 @@ NTSTATUS smb2cli_req_compound_submit(struct tevent_req **reqs, bool ret; uint64_t mid; + if (!tevent_req_is_in_progress(reqs[i])) { + return NT_STATUS_INTERNAL_ERROR; + } + state = tevent_req_data(reqs[i], struct smb2cli_req_state); if (state->cli->smb2.mid == UINT64_MAX) { |