summaryrefslogtreecommitdiff
path: root/source4/libcli/smb2/transport.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-12-09 11:05:47 +0100
committerStefan Metzmacher <metze@samba.org>2011-12-09 15:13:11 +0100
commit4e57bb0b364e84f3cc8928f0f1a29055d69c7efd (patch)
tree46d2c808d327bf1eaa2f7aa927f69224b97afcfd /source4/libcli/smb2/transport.c
parent4486336bd820c8be6145e3946dc831bda16602ca (diff)
downloadsamba-4e57bb0b364e84f3cc8928f0f1a29055d69c7efd.tar.gz
samba-4e57bb0b364e84f3cc8928f0f1a29055d69c7efd.tar.bz2
samba-4e57bb0b364e84f3cc8928f0f1a29055d69c7efd.zip
s4:libcli/smb2: mark a request as error if we can't ship it
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Dec 9 15:13:11 CET 2011 on sn-devel-104
Diffstat (limited to 'source4/libcli/smb2/transport.c')
-rw-r--r--source4/libcli/smb2/transport.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/libcli/smb2/transport.c b/source4/libcli/smb2/transport.c
index 55281d2b49..59d49f7845 100644
--- a/source4/libcli/smb2/transport.c
+++ b/source4/libcli/smb2/transport.c
@@ -227,6 +227,8 @@ void smb2_transport_send(struct smb2_request *req)
TALLOC_FREE(transport->compound.reqs);
if (!NT_STATUS_IS_OK(status)) {
+ req->status = status;
+ req->state = SMB2_REQUEST_ERROR;
smbXcli_conn_disconnect(transport->conn, status);
}
}