diff options
author | Jeremy Allison <jra@samba.org> | 2007-09-08 05:35:10 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:30:35 -0500 |
commit | fe6644fb5a6097d5e16e2c7667fb49dee1fa94ae (patch) | |
tree | 8fcbfa6d010eff46aa711caa3e5b219b83c94ffa | |
parent | 2400758fbef9f3a5a8b7138053ca75586af80dce (diff) | |
download | samba-fe6644fb5a6097d5e16e2c7667fb49dee1fa94ae.tar.gz samba-fe6644fb5a6097d5e16e2c7667fb49dee1fa94ae.tar.bz2 samba-fe6644fb5a6097d5e16e2c7667fb49dee1fa94ae.zip |
r25023: Coverity #455. Not actually a bug, but this clarifies
the code a lot.
Jeremy.
(This used to be commit 5ba12eefbed209a8a6b474da479efd190f91638e)
-rw-r--r-- | source3/rpc_server/srv_pipe_hnd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_pipe_hnd.c b/source3/rpc_server/srv_pipe_hnd.c index 5dd28af8ab..fac3df453a 100644 --- a/source3/rpc_server/srv_pipe_hnd.c +++ b/source3/rpc_server/srv_pipe_hnd.c @@ -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; } /* |