summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/config.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/config.c b/src/config.c
index 63527b7..26e385f 100644
--- a/src/config.c
+++ b/src/config.c
@@ -1006,9 +1006,8 @@ static void peer_dirs_handle_new_peers(fastd_context_t *ctx, fastd_peer_config_t
continue;
peer->next = *peers;
+ *peers = new_peers;
}
-
- *peers = new_peers;
}