diff options
author | Tim Potter <tpot@samba.org> | 2001-08-23 18:05:44 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-08-23 18:05:44 +0000 |
commit | b5a5fe44cc06efc32504178eee546c647b08b595 (patch) | |
tree | 42a869aedb9e0e3c940a65af3a4abafc1cb21852 /source3 | |
parent | c45fbe69f5b7a57fea9ba18cfa47e63b42de7992 (diff) | |
download | samba-b5a5fe44cc06efc32504178eee546c647b08b595.tar.gz samba-b5a5fe44cc06efc32504178eee546c647b08b595.tar.bz2 samba-b5a5fe44cc06efc32504178eee546c647b08b595.zip |
Fix for filers sending -1 for the maximum read request length on the
LSA pipe.
(This used to be commit 95307a5d3881803e57639431da967ee3872aacc4)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_server/srv_pipe_hnd.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source3/rpc_server/srv_pipe_hnd.c b/source3/rpc_server/srv_pipe_hnd.c index baa02beb65..cdcdb82923 100644 --- a/source3/rpc_server/srv_pipe_hnd.c +++ b/source3/rpc_server/srv_pipe_hnd.c @@ -775,10 +775,14 @@ ssize_t read_from_pipe(pipes_struct *p, char *data, size_t n) * read request. */ + /* This condition should result in the connection being closed. + Netapp filers seem to set it to 0xffff which results in domain + authentications failing. Just ignore it so things work. */ + if(n > MAX_PDU_FRAG_LEN) { - DEBUG(0,("read_from_pipe: too large read (%u) requested on pipe %s. We can \ -only service %d sized reads.\n", (unsigned int)n, p->name, MAX_PDU_FRAG_LEN )); - return -1; + DEBUG(5,("read_from_pipe: too large read (%u) requested on " + "pipe %s. We can only service %d sized reads.\n", + (unsigned int)n, p->name, MAX_PDU_FRAG_LEN )); } /* |