summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-02-17 19:11:11 +0100
committerStefan Metzmacher <metze@samba.org>2010-02-18 09:38:00 +0100
commitc42d9c4ec410e205091784cd97cbceb5572609d8 (patch)
tree11086726fe98065137777bcaa6611f06d3c02658 /lib
parent9abce9f7c95e5b98acff990ff0f7d4adec31282f (diff)
downloadsamba-c42d9c4ec410e205091784cd97cbceb5572609d8.tar.gz
samba-c42d9c4ec410e205091784cd97cbceb5572609d8.tar.bz2
samba-c42d9c4ec410e205091784cd97cbceb5572609d8.zip
tsocket/bsd: fix comment in tdgram_bsd_recvfrom_handler()
metze
Diffstat (limited to 'lib')
-rw-r--r--lib/tsocket/tsocket_bsd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/tsocket/tsocket_bsd.c b/lib/tsocket/tsocket_bsd.c
index 9d5a3290d9..c44ba4e714 100644
--- a/lib/tsocket/tsocket_bsd.c
+++ b/lib/tsocket/tsocket_bsd.c
@@ -884,8 +884,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)) {