r25023: Coverity #455. Not actually a bug, but this clarifies
authorJeremy Allison <jra@samba.org>
Sat, 8 Sep 2007 05:35:10 +0000 (05:35 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:30:35 +0000 (12:30 -0500)
the code a lot.
Jeremy.
(This used to be commit 5ba12eefbed209a8a6b474da479efd190f91638e)

source3/rpc_server/srv_pipe_hnd.c

index 5dd28af8ab51bf5cc2b0bcb6f8a0964c0bc10191..fac3df453a95d85ed0cced2f4151e949cdcfdbcb 100644 (file)
@@ -1033,6 +1033,7 @@ static ssize_t read_from_internal_pipe(void *np_conn, char *data, size_t n,
        if(n > RPC_MAX_PDU_FRAG_LEN) {
                 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, RPC_MAX_PDU_FRAG_LEN ));
+               n = RPC_MAX_PDU_FRAG_LEN;
        }
 
        /*