diff options
author | Volker Lendecke <vl@samba.org> | 2009-04-05 13:26:42 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-04-05 13:45:15 +0200 |
commit | d3825d5d1023bed835e04f4a99a59e1d3b5b4b81 (patch) | |
tree | 5d7e72d24c96229613bebdeec24c9c661ca8cb2a | |
parent | df29f49eddbfcd5c6ac9a26d688a1a3f7a087da5 (diff) | |
download | samba-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 :-)
-rw-r--r-- | lib/async_req/async_sock.c | 3 |
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; |