The branch, master has been updated
       via  d3825d5d1023bed835e04f4a99a59e1d3b5b4b81 (commit)
      from  df29f49eddbfcd5c6ac9a26d688a1a3f7a087da5 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit d3825d5d1023bed835e04f4a99a59e1d3b5b4b81
Author: Volker Lendecke <v...@samba.org>
Date:   Sun Apr 5 13:26:42 2009 +0200

    Use recv instead of read in read_packet_handler
    
    This way the socket wrapper pcap file also sees the replies :-)

-----------------------------------------------------------------------

Summary of changes:
 lib/async_req/async_sock.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/lib/async_req/async_sock.c b/lib/async_req/async_sock.c
index 77df406..39705f4 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;


-- 
Samba Shared Repository

Reply via email to