summaryrefslogtreecommitdiff
path: root/source/rpc_server/srv_pipe.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>2000-01-04 07:52:21 +0000
committerLuke Leighton <lkcl@samba.org>2000-01-04 07:52:21 +0000
commit90c27b7bffa9b2121eaed0e07931830c3ba308d7 (patch)
tree677b773c7a76db97b477688626647f8284ce1ca4 /source/rpc_server/srv_pipe.c
parentb5420f6152d5df415231cb3fdf614542dbbd7db3 (diff)
downloadsamba-90c27b7bffa9b2121eaed0e07931830c3ba308d7.tar.gz
oops, must use read_data() not read(), as read() may only provide
part of the data stream. read_data() is a wrapper to guarantee receiving exactly the requested number of bytes.
Diffstat (limited to 'source/rpc_server/srv_pipe.c')
-rw-r--r--source/rpc_server/srv_pipe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/rpc_server/srv_pipe.c b/source/rpc_server/srv_pipe.c
index 98c3e90c06b..49733b0767c 100644
--- a/source/rpc_server/srv_pipe.c
+++ b/source/rpc_server/srv_pipe.c
@@ -68,7 +68,7 @@ BOOL readwrite_pipe(pipes_struct *p, char *data, int len,
{
return False;
}
- (*rlen) = read(p->m->fd, (*rdata), (*rlen));
+ (*rlen) = read_data(p->m->fd, (*rdata), (*rlen));
if ((*rlen) < 0)
{
return False;
@@ -115,6 +115,6 @@ int read_pipe(pipes_struct *p, char *data, int n)
return -1;
}
- return read(p->m->fd, data, n);
+ return read_data(p->m->fd, data, n);
}