diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/smb2cli_base.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/libsmb/smb2cli_base.c b/source3/libsmb/smb2cli_base.c index f088ceaacd..7f4b176572 100644 --- a/source3/libsmb/smb2cli_base.c +++ b/source3/libsmb/smb2cli_base.c @@ -22,6 +22,7 @@ #include "client.h" #include "read_smb.h" #include "smb2cli_base.h" +#include "libsmb/proto.h" #include "lib/async_req/async_sock.h" #include "lib/util/tevent_ntstatus.h" @@ -260,6 +261,10 @@ NTSTATUS smb2cli_req_compound_submit(struct tevent_req **reqs, state = tevent_req_data(reqs[i], struct smb2cli_req_state); + if (!cli_state_is_connected(state->cli)) { + return NT_STATUS_CONNECTION_DISCONNECTED; + } + if (state->cli->smb2.mid == UINT64_MAX) { return NT_STATUS_CONNECTION_ABORTED; } |