summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-09-08 05:35:10 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:30:35 -0500
commitfe6644fb5a6097d5e16e2c7667fb49dee1fa94ae (patch)
tree8fcbfa6d010eff46aa711caa3e5b219b83c94ffa /source3
parent2400758fbef9f3a5a8b7138053ca75586af80dce (diff)
downloadsamba-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)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_pipe_hnd.c1
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;
}
/*