From b97a591e2cb57d0a9cbe7d3aa6fdaa5de689a39d Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 30 Apr 2009 17:24:58 +0200 Subject: [PATCH] s4:libcli/raw: write can return STATUS_BUFFER_OVERFLOW as a real error We should not try to parse the result if the status is not NT_STATUS_OK. metze --- source4/libcli/raw/rawreadwrite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/libcli/raw/rawreadwrite.c b/source4/libcli/raw/rawreadwrite.c index a8c79963105..20565833309 100644 --- a/source4/libcli/raw/rawreadwrite.c +++ b/source4/libcli/raw/rawreadwrite.c @@ -305,7 +305,7 @@ _PUBLIC_ struct smbcli_request *smb_raw_write_send(struct smbcli_tree *tree, uni NTSTATUS smb_raw_write_recv(struct smbcli_request *req, union smb_write *parms) { if (!smbcli_request_receive(req) || - smbcli_request_is_error(req)) { + !NT_STATUS_IS_OK(req->status)) { goto failed; }