summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-04-19 16:54:26 +0200
committerVolker Lendecke <vl@samba.org>2008-04-19 17:04:09 +0200
commitb7d2e94296f2201177e2fc08b0c6e12e4a36af50 (patch)
tree1a4cae839828d3e3e8f97e901c13b2562351b35f
parentc071b941e6090a2b107a8a42835e6da772161425 (diff)
downloadsamba-b7d2e94296f2201177e2fc08b0c6e12e4a36af50.tar.gz
samba-b7d2e94296f2201177e2fc08b0c6e12e4a36af50.tar.bz2
samba-b7d2e94296f2201177e2fc08b0c6e12e4a36af50.zip
Fix bug 5399
Thanks to Jason Mader! Volker (This used to be commit 36740f4959194cfaa98b1e37eed08f22edbda1e4)
-rw-r--r--source3/libsmb/clireadwrite.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/source3/libsmb/clireadwrite.c b/source3/libsmb/clireadwrite.c
index e79fd90614..12ba4b737f 100644
--- a/source3/libsmb/clireadwrite.c
+++ b/source3/libsmb/clireadwrite.c
@@ -150,11 +150,6 @@ NTSTATUS cli_read_andx_recv(struct async_req *req, ssize_t *received,
return NT_STATUS_UNEXPECTED_IO_ERROR;
}
- if (size < 0) {
- DEBUG(5,("read return < 0!\n"));
- return NT_STATUS_UNEXPECTED_IO_ERROR;
- }
-
*rcvbuf = (uint8_t *)
(smb_base(cli_req->inbuf) + SVAL(cli_req->inbuf, smb_vwv6));
*received = size;