summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/options.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/options.c b/src/options.c
index 1e7764d..8593da2 100644
--- a/src/options.c
+++ b/src/options.c
@@ -122,7 +122,8 @@ static void option_config_peer(const char *arg) {
if(!fastd_config_read(arg, conf.peer_group, peer, 0))
exit(1);
- fastd_peer_add(peer);
+ if (!fastd_peer_add(peer))
+ exit_error("invalid peer definition");
}
/** Handles the --config-peer-dir option */