diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-09-05 09:35:43 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-09-05 18:01:06 +0200 |
commit | 4dca2acfe43fda00637615548fecab1e3313b204 (patch) | |
tree | d69b8646cc35f4d73dc5ec313717f00a77e955a3 | |
parent | 0b6087c7be01983be96f3f3cb892ba2f32a8266a (diff) | |
download | samba-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
-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) { |