summaryrefslogtreecommitdiff
path: root/source4/libcli/smb2/write.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libcli/smb2/write.c')
-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);
}