summaryrefslogtreecommitdiffstats
path: root/src/task.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/task.c')
-rw-r--r--src/task.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/task.c b/src/task.c
index bd3ee7a..fb75766 100644
--- a/src/task.c
+++ b/src/task.c
@@ -65,7 +65,7 @@ static bool is_handshake(fastd_queue_entry *data, void *extra) {
fastd_peer *peer = extra;
if (task->peer != peer)
- return true;
+ return false;
return (task->type == TASK_HANDSHAKE);
}
@@ -91,7 +91,7 @@ static bool is_keepalive(fastd_queue_entry *data, void *extra) {
fastd_peer *peer = extra;
if (task->peer != peer)
- return true;
+ return false;
return (task->type == TASK_KEEPALIVE);
}