summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-08-23 15:40:43 +0200
committerVolker Lendecke <vl@samba.org>2008-08-23 15:41:00 +0200
commit1924e7931cf83124529edb79620a8494ddcad0e9 (patch)
treea7e7b302bd6dededec5f0252eb7f4ca2e6fbbe78 /source3/libsmb
parent56cd17dfe145c2df2b39ad295136c4922bee8e43 (diff)
downloadsamba-1924e7931cf83124529edb79620a8494ddcad0e9.tar.gz
samba-1924e7931cf83124529edb79620a8494ddcad0e9.tar.bz2
samba-1924e7931cf83124529edb79620a8494ddcad0e9.zip
Revert "Protect against short read&x replies"
This reverts commit 4ed73cbbbeff4b554cc8d28252b756241396b3a1. ... how did this end up here?? Volker (This used to be commit 7dd9fd0956bd1c46105d1072c4774972933ab9ec)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clireadwrite.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/source3/libsmb/clireadwrite.c b/source3/libsmb/clireadwrite.c
index 4d3027694f..a57f1e0785 100644
--- a/source3/libsmb/clireadwrite.c
+++ b/source3/libsmb/clireadwrite.c
@@ -138,10 +138,6 @@ NTSTATUS cli_read_andx_recv(struct async_req *req, ssize_t *received,
return status;
}
- if (wct < 12) {
- return NT_STATUS_INVALID_NETWORK_RESPONSE;
- }
-
/* size is the number of bytes the server returned.
* Might be zero. */
size = SVAL(cli_req->inbuf, smb_vwv5);