summaryrefslogtreecommitdiff
path: root/igmp.c
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2020-06-20 12:53:25 +0200
committerDavid Härdeman <david@hardeman.nu>2020-06-20 12:53:25 +0200
commite11014c0443ea687ad65a14b9124aa366da7984a (patch)
tree8c6642ed187dc71cc672cec9f3459aa75134eaa5 /igmp.c
parentfc25e880dfb1f804742006bcdd15ac70d18b4144 (diff)
Introduce helper for checking if a task is dead
Diffstat (limited to 'igmp.c')
-rw-r--r--igmp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/igmp.c b/igmp.c
index 26fe56f..36f63e2 100644
--- a/igmp.c
+++ b/igmp.c
@@ -391,8 +391,12 @@ igmp_read_cb(struct cfg *cfg, struct uring_task *task, int res)
debug(DBG_IGMP, "task %p, igmp %p, res %i\n", task, igmp, res);
- if (res < 0 || task->dead)
+ assert_task_alive(DBG_IGMP, task);
+
+ if (res < 0) {
+ error("res: %i\n", res);
return;
+ }
task->tbuf->len = res;