summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/libcli/smb2/read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libcli/smb2/read.c b/source4/libcli/smb2/read.c
index eb935fb4f1..272bc82882 100644
--- a/source4/libcli/smb2/read.c
+++ b/source4/libcli/smb2/read.c
@@ -56,7 +56,7 @@ NTSTATUS smb2_read_recv(struct smb2_request *req,
NTSTATUS status;
if (!smb2_request_receive(req) ||
- smb2_request_is_error(req)) {
+ !smb2_request_is_ok(req)) {
return smb2_request_destroy(req);
}