summaryrefslogtreecommitdiff
path: root/lib/async_req
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-04-05 13:26:42 +0200
committerVolker Lendecke <vl@samba.org>2009-04-05 13:45:15 +0200
commitd3825d5d1023bed835e04f4a99a59e1d3b5b4b81 (patch)
tree5d7e72d24c96229613bebdeec24c9c661ca8cb2a /lib/async_req
parentdf29f49eddbfcd5c6ac9a26d688a1a3f7a087da5 (diff)
downloadsamba-d3825d5d1023bed835e04f4a99a59e1d3b5b4b81.tar.gz
samba-d3825d5d1023bed835e04f4a99a59e1d3b5b4b81.tar.bz2
samba-d3825d5d1023bed835e04f4a99a59e1d3b5b4b81.zip
Use recv instead of read in read_packet_handler
This way the socket wrapper pcap file also sees the replies :-)
Diffstat (limited to 'lib/async_req')
-rw-r--r--lib/async_req/async_sock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/async_req/async_sock.c b/lib/async_req/async_sock.c
index 77df406044..39705f45bb 100644
--- a/lib/async_req/async_sock.c
+++ b/lib/async_req/async_sock.c
@@ -547,7 +547,8 @@ static void read_packet_handler(struct tevent_context *ev,
ssize_t nread, more;
uint8_t *tmp;
- nread = read(state->fd, state->buf+state->nread, total-state->nread);
+ nread = recv(state->fd, state->buf+state->nread, total-state->nread,
+ 0);
if (nread == -1) {
tevent_req_error(req, errno);
return;