summaryrefslogtreecommitdiff
path: root/source4/libcli/smb2
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2012-07-27 15:09:18 +0200
committerChristian Ambach <ambi@samba.org>2012-08-06 20:01:01 +0200
commitb20fb153e1f20a2c6bdbf71d91858e8d2b1c4712 (patch)
tree3fe9cec265dba219a39e32e96dc37fdead103d39 /source4/libcli/smb2
parent4e91ccf16de6db8fdfdec65717b95f0e072f42da (diff)
downloadsamba-b20fb153e1f20a2c6bdbf71d91858e8d2b1c4712.tar.gz
samba-b20fb153e1f20a2c6bdbf71d91858e8d2b1c4712.tar.bz2
samba-b20fb153e1f20a2c6bdbf71d91858e8d2b1c4712.zip
s4:libcli/smb2/write correct error checking
Server might return STATUS_BUFFER_OVERFLOW, which is not caught by NT_STATUS_IS_ERR Autobuild-User(master): Christian Ambach <ambi@samba.org> Autobuild-Date(master): Mon Aug 6 20:01:01 CEST 2012 on sn-devel-104
Diffstat (limited to 'source4/libcli/smb2')
-rw-r--r--source4/libcli/smb2/write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libcli/smb2/write.c b/source4/libcli/smb2/write.c
index bc283370d7..62ffe2ecf2 100644
--- a/source4/libcli/smb2/write.c
+++ b/source4/libcli/smb2/write.c
@@ -58,7 +58,7 @@ struct smb2_request *smb2_write_send(struct smb2_tree *tree, struct smb2_write *
NTSTATUS smb2_write_recv(struct smb2_request *req, struct smb2_write *io)
{
if (!smb2_request_receive(req) ||
- smb2_request_is_error(req)) {
+ !smb2_request_is_ok(req)) {
return smb2_request_destroy(req);
}