Which was:
tsocket/bsd: fix bug #7115 FreeBSD includes the UDP header in FIONREAD
Metze, this has to have been wrong - you are throwing away the talloc_realloc
pointer returned. Also no error checking. Please review.
Thank goodness for gcc warnings :-).
Jeremy.
* some systems too much bytes in tsocket_bsd_pending()
* the return value includes some IP/UDP header bytes
*/
+ state->buf = talloc_realloc(state, state->buf, uint8_t, ret);
+ if (tevent_req_nomem(state->buf, req)) {
+ return;
+ }
state->len = ret;
- talloc_realloc(state, state->buf, uint8_t, ret);
tevent_req_done(req);
}