From ef3db76e371cac0bba4d0a9740a3f367f48f32ab Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 8 Mar 2013 21:26:40 +0100 Subject: Don't forget all peers when no peers are configured in peer dirs --- src/config.c | 3 +-- 1 file changed, 1 insertion(+), 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; } -- cgit v1.2.3