summaryrefslogtreecommitdiffstats
path: root/src/fastd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fastd.c')
-rw-r--r--src/fastd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fastd.c b/src/fastd.c
index 0f52435..f6635d3 100644
--- a/src/fastd.c
+++ b/src/fastd.c
@@ -260,7 +260,7 @@ static void init_peers(fastd_context *ctx) {
static void handle_tasks(fastd_context *ctx) {
fastd_task *task;
while ((task = fastd_task_get(ctx)) != NULL) {
- switch (task->type) {
+ switch (task->any.type) {
case TASK_SEND:
if (task->send.peer) {
struct msghdr msg;