mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
vfs_cifs - Use ntvfs request transport close to close downstream session
When upstream session closes, close the downstream session Signed-off-by: Sam Liddicott <sam@liddicott.com> Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
7d8f3cdbfc
commit
39e468f558
@ -63,7 +63,17 @@ struct async_info {
|
||||
void *parms;
|
||||
};
|
||||
|
||||
#define SETUP_PID private->tree->session->pid = req->smbpid
|
||||
#define CHECK_UPSTREAM_OPEN do { \
|
||||
if (! private->transport->socket->sock) { \
|
||||
req->async_states->state|=NTVFS_ASYNC_STATE_CLOSE; \
|
||||
return NT_STATUS_CONNECTION_DISCONNECTED; \
|
||||
} \
|
||||
} while(0)
|
||||
|
||||
#define SETUP_PID do { \
|
||||
private->tree->session->pid = req->smbpid; \
|
||||
CHECK_UPSTREAM_OPEN; \
|
||||
} while(0)
|
||||
|
||||
#define SETUP_FILE_HERE(f) do { \
|
||||
f = ntvfs_handle_get_backend_data(io->generic.in.file.ntvfs, ntvfs); \
|
||||
|
Loading…
Reference in New Issue
Block a user