summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/config.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/config.c b/src/config.c
index 672c0a7..3c58cd0 100644
--- a/src/config.c
+++ b/src/config.c
@@ -361,7 +361,9 @@ static void read_peer_dir(fastd_context_t *ctx, fastd_config_t *conf, const char
}
}
- closedir(dirh);
+ if (closedir(dirh) < 0)
+ pr_error_errno(ctx, "closedir");
+
}
else {
pr_error(ctx, "opendir for `%s' failed: %s", dir, strerror(errno));