- t->ret = -E_DCCP_RECV_EOF;
- if (rn->output_eof && *rn->output_eof)
- goto out;
- t->ret = 1;
- if (!s->select_ret || !FD_ISSET(pdd->fd, &s->rfds))
- goto out; /* nothing to do */
- t->ret = -E_DCCP_OVERRUN;
- if (rn->loaded >= DCCP_BUFSIZE)
- goto out;
- t->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,