summaryrefslogtreecommitdiffstats
path: root/src/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.c b/src/config.c
index aa10b10..c708609 100644
--- a/src/config.c
+++ b/src/config.c
@@ -137,7 +137,7 @@ void fastd_read_config_dir(fastd_context *ctx, fastd_config *conf, const char *d
fastd_peer_config_new(ctx, conf);
conf->peers->name = strdup(result->d_name);
- conf->peers->config_source_dir = strdup(dir);
+ conf->peers->config_source_dir = conf->peer_dirs->str;
if (!fastd_read_config(ctx, conf, result->d_name, true, depth)) {
pr_warn(ctx, "peer config `%s' will be ignored", result->d_name);