X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=http_recv.c;h=c19facf70a39b1503deaea28008fc4b7a8b73f97;hp=b4bf1530d811fefb04c4f5b107e752e45d8e9048;hb=7c8931ecbbf665d399ffbc101fde88eb8d78af85;hpb=c059f39305eb3629e06a89aa44816e98d29d78a8 diff --git a/http_recv.c b/http_recv.c index b4bf1530..c19facf7 100644 --- a/http_recv.c +++ b/http_recv.c @@ -83,7 +83,9 @@ static void http_recv_post_select(struct sched *s, struct task *t) struct iovec iov[2]; size_t num_bytes; - t->error = 0; + ret = task_get_notification(t); + if (ret < 0) + goto out; ret = btr_node_status(btrn, 0, BTR_NT_ROOT); if (ret < 0) goto out; @@ -128,7 +130,7 @@ static void http_recv_post_select(struct sched *s, struct task *t) out: if (ret >= 0) return; - btr_remove_node(rn->btrn); + btr_remove_node(&rn->btrn); t->error = ret; }