diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-02-17 19:11:11 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2010-02-19 14:32:29 +0100 |
commit | 6982b38d6ed05f4dad33bbf3116e40a257ea9b85 (patch) | |
tree | 10e6614aa0fb16dc2353f23dd5ad2d6fce92d563 | |
parent | 994e0d09677788eece6b936fd23679a3eadb4564 (diff) | |
download | samba-6982b38d6ed05f4dad33bbf3116e40a257ea9b85.tar.gz |
tsocket/bsd: fix comment in tdgram_bsd_recvfrom_handler()
metze
(cherry picked from commit c42d9c4ec410e205091784cd97cbceb5572609d8)
(cherry picked from commit d68c7db67dc8f87be8a924d1b2b66379fc52b723)
-rw-r--r-- | lib/tsocket/tsocket_bsd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/tsocket/tsocket_bsd.c b/lib/tsocket/tsocket_bsd.c index a0caa5af166..201788e9223 100644 --- a/lib/tsocket/tsocket_bsd.c +++ b/lib/tsocket/tsocket_bsd.c @@ -878,8 +878,10 @@ static void tdgram_bsd_recvfrom_handler(void *private_data) } /* - * some systems too much bytes in tsocket_bsd_pending() - * the return value includes some IP/UDP header bytes + * Some systems (FreeBSD, see bug #7115) return too much + * bytes in tsocket_bsd_pending()/ioctl(fd, FIONREAD, ...), + * the return value includes some IP/UDP header bytes, + * while recvfrom() just returns the payload. */ state->buf = talloc_realloc(state, state->buf, uint8_t, ret); if (tevent_req_nomem(state->buf, req)) { |