summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-03-19 22:37:24 +0100
committerVolker Lendecke <vl@samba.org>2008-03-19 22:38:13 +0100
commitb2ec8372bac987525e3bfa448212ea4f1d8fe5d9 (patch)
treecc11bddaae347a05ba4d4276e1f21ce7d8e70bf9
parent31c83b750553d46792102e8afc889da7d99be859 (diff)
downloadsamba-b2ec8372bac987525e3bfa448212ea4f1d8fe5d9.tar.gz
samba-b2ec8372bac987525e3bfa448212ea4f1d8fe5d9.tar.bz2
samba-b2ec8372bac987525e3bfa448212ea4f1d8fe5d9.zip
!NT_STATUS_IS_OK != NT_STATUS_IS_ERR
When reading from a pipe, Windows return STATUS_BUFFER_OVERFLOW which is *not* an error. (This used to be commit 24018d882d1b1cfece47c533fe5bbca91de124cc)
-rw-r--r--source3/libsmb/clireadwrite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/clireadwrite.c b/source3/libsmb/clireadwrite.c
index 13c024a264..64a6b7b4eb 100644
--- a/source3/libsmb/clireadwrite.c
+++ b/source3/libsmb/clireadwrite.c
@@ -136,7 +136,7 @@ NTSTATUS cli_read_andx_recv(struct async_req *req, ssize_t *received,
status = cli_pull_error(cli_req->inbuf);
- if (!NT_STATUS_IS_OK(status)) {
+ if (NT_STATUS_IS_ERR(status)) {
return status;
}