From: Tim Potter Date: Thu, 23 Aug 2001 18:05:44 +0000 (+0000) Subject: Fix for filers sending -1 for the maximum read request length on the X-Git-Tag: samba-2.2.5pre1~1555^2~97 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=95307a5d3881803e57639431da967ee3872aacc4;p=thirdparty%2Fsamba.git Fix for filers sending -1 for the maximum read request length on the LSA pipe. --- diff --git a/source/rpc_server/srv_pipe_hnd.c b/source/rpc_server/srv_pipe_hnd.c index baa02beb654..cdcdb82923f 100644 --- a/source/rpc_server/srv_pipe_hnd.c +++ b/source/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 )); } /*