]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:smb2cli: make sure requests are not finished, when we send when to the network
authorStefan Metzmacher <metze@samba.org>
Mon, 5 Sep 2011 07:35:43 +0000 (09:35 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 5 Sep 2011 16:01:06 +0000 (18:01 +0200)
metze

source3/libsmb/smb2cli_base.c

index e59d9a5d489286be07ba2b18304aac248d8ff27d..f088ceaacdd08e98cb55cab7596d4b7c9feb1251 100644 (file)
@@ -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) {