X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=dccp_recv.c;h=3d6588ac4b338ad26c99c76276d0dc05ede9d115;hp=c751f2f7ce5d85464d506c8c6582556bb424aa7d;hb=b8290b7cad010552873c5e640e56dbe9c901dfb1;hpb=9d75ded33ce6664156acb07e311f51d55970bbea diff --git a/dccp_recv.c b/dccp_recv.c index c751f2f7..3d6588ac 100644 --- a/dccp_recv.c +++ b/dccp_recv.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006-2013 Andre Noll + * Copyright (C) 2006-2014 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -11,8 +11,13 @@ * (C) 2005 Ian McDonald */ +#include +#include #include #include +#include +#include +#include #include "para.h" #include "error.h" @@ -53,6 +58,7 @@ static int dccp_recv_open(struct receiver_node *rn) } fd = makesock(IPPROTO_DCCP, 0, conf->host_arg, conf->port_arg, fo); + flowopt_cleanup(fo); free(ccids); if (fd < 0) return fd; @@ -117,7 +123,6 @@ static void dccp_recv_pre_select(struct sched *s, struct task *t) { struct receiver_node *rn = container_of(t, struct receiver_node, task); - t->error = 0; if (generic_recv_pre_select(s, t) <= 0) return; para_fd_set(rn->fd, &s->rfds, &s->max_fileno);