diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/libcli/smb2/transport.c | 2 |
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); } } |