summaryrefslogtreecommitdiff
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
commit528399a8a2a0903e6b8a9de0e3ac07f1f0b5f21b (patch)
tree1e8ac3273a4b5360ce7a54c092910a8ce3d541d5
parent7434c1aabdee5e71ffc752d9df7250808c824d46 (diff)
downloadsamba-528399a8a2a0903e6b8a9de0e3ac07f1f0b5f21b.tar.gz
samba-528399a8a2a0903e6b8a9de0e3ac07f1f0b5f21b.tar.bz2
samba-528399a8a2a0903e6b8a9de0e3ac07f1f0b5f21b.zip
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. (This used to be commit 90c27b7bffa9b2121eaed0e07931830c3ba308d7)
-rw-r--r--source3/rpc_server/srv_pipe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c
index 98c3e90c06..49733b0767 100644
--- a/source3/rpc_server/srv_pipe.c
+++ b/source3/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);
}