git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
9abce9f
)
tsocket/bsd: fix comment in tdgram_bsd_recvfrom_handler()
author
Stefan Metzmacher
<metze@samba.org>
Wed, 17 Feb 2010 18:11:11 +0000
(19:11 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Thu, 18 Feb 2010 08:38:00 +0000
(09:38 +0100)
metze
lib/tsocket/tsocket_bsd.c
patch
|
blob
|
history
diff --git
a/lib/tsocket/tsocket_bsd.c
b/lib/tsocket/tsocket_bsd.c
index 9d5a3290d977aa5c59f5065f5c5bddbb1edb4209..c44ba4e714fe2735bd787003e4b468d918a0b850 100644
(file)
--- 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)) {