summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-03-08 21:26:40 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-03-08 21:26:40 +0100
commitef3db76e371cac0bba4d0a9740a3f367f48f32ab (patch)
tree13cb44be4fa9d1a9da5a0175be8914c7f8ca20c8
parent8b960550883e65850402e3c81c24f22e740dbd10 (diff)
downloadfastd-ef3db76e371cac0bba4d0a9740a3f367f48f32ab.tar
fastd-ef3db76e371cac0bba4d0a9740a3f367f48f32ab.zip
Don't forget all peers when no peers are configured in peer dirs
-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;
}