Fix bug 5399
authorVolker Lendecke <vl@samba.org>
Sat, 19 Apr 2008 14:54:26 +0000 (16:54 +0200)
committerVolker Lendecke <vl@samba.org>
Sat, 19 Apr 2008 15:04:09 +0000 (17:04 +0200)
Thanks to Jason Mader!

Volker

source/libsmb/clireadwrite.c

index e79fd906148f1153c5d2097fb85d72cf8c43f4eb..12ba4b737fbe56fb5d76c555a63594fbcb3c6a6f 100644 (file)
@@ -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;