s4:libcli/raw: write can return STATUS_BUFFER_OVERFLOW as a real error
authorStefan Metzmacher <metze@samba.org>
Thu, 30 Apr 2009 15:24:58 +0000 (17:24 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 1 May 2009 13:12:07 +0000 (15:12 +0200)
We should not try to parse the result if the status is not NT_STATUS_OK.

metze

source4/libcli/raw/rawreadwrite.c

index a8c79963105c952e8da5cc341979287eb8296758..20565833309cdf3ae7e04558ae638072fdf041c6 100644 (file)
@@ -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;
        }