Fix for filers sending -1 for the maximum read request length on the
authorTim Potter <tpot@samba.org>
Thu, 23 Aug 2001 18:05:44 +0000 (18:05 +0000)
committerTim Potter <tpot@samba.org>
Thu, 23 Aug 2001 18:05:44 +0000 (18:05 +0000)
LSA pipe.

source/rpc_server/srv_pipe_hnd.c

index baa02beb654edc8724d4b87fa880b7377002060e..cdcdb82923f9aed0478d6e5261d5da29c0ad2da2 100644 (file)
@@ -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 ));
        }
 
        /*