diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-04-30 17:24:58 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-05-01 15:12:07 +0200 |
commit | b97a591e2cb57d0a9cbe7d3aa6fdaa5de689a39d (patch) | |
tree | 84c7e526aa27556c1834fbdd39ff1b056af0051d | |
parent | bcb89826de933ab67589daecb64ff0abf5af8920 (diff) | |
download | samba-b97a591e2cb57d0a9cbe7d3aa6fdaa5de689a39d.tar.gz samba-b97a591e2cb57d0a9cbe7d3aa6fdaa5de689a39d.tar.bz2 samba-b97a591e2cb57d0a9cbe7d3aa6fdaa5de689a39d.zip |
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
-rw-r--r-- | source4/libcli/raw/rawreadwrite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libcli/raw/rawreadwrite.c b/source4/libcli/raw/rawreadwrite.c index a8c7996310..2056583330 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; } |