- if (!select_ret || !pdd || !FD_ISSET(pdd->fd, rfds))
- return 1; /* nothing to do */
- if (rn->loaded >= DCCP_BUFSIZE)
- return -E_DCCP_OVERRUN;
- ret = recv_bin_buffer(pdd->fd, rn->buf + rn->loaded,
+ if (rn->output_error && *rn->output_error < 0) {
+ t->error = *rn->output_error;
+ return;
+ }
+ if (!FD_ISSET(pdd->fd, &s->rfds))
+ return; /* nothing to do */
+ if (rn->loaded >= DCCP_BUFSIZE) {
+ t->error = -E_DCCP_OVERRUN;
+ return;
+ }
+ t->error = recv_bin_buffer(pdd->fd, rn->buf + rn->loaded,