diff --git a/source/libcli/smb2/read.c b/source/libcli/smb2/read.c index eb935fb4f13..272bc828824 100644 --- a/source/libcli/smb2/read.c +++ b/source/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); }