summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-09-05 09:35:43 +0200
committerStefan Metzmacher <metze@samba.org>2011-09-05 18:01:06 +0200
commit4dca2acfe43fda00637615548fecab1e3313b204 (patch)
treed69b8646cc35f4d73dc5ec313717f00a77e955a3 /source3
parent0b6087c7be01983be96f3f3cb892ba2f32a8266a (diff)
downloadsamba-4dca2acfe43fda00637615548fecab1e3313b204.tar.gz
samba-4dca2acfe43fda00637615548fecab1e3313b204.tar.bz2
samba-4dca2acfe43fda00637615548fecab1e3313b204.zip
s3:smb2cli: make sure requests are not finished, when we send when to the network
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/smb2cli_base.c4
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) {