From c917c3ca77c7677583359ebbb28f93ac8394a11a Mon Sep 17 00:00:00 2001 From: yasuoka Date: Mon, 1 Jul 2024 03:29:21 +0000 Subject: [PATCH] Show config error when -n --- usr.sbin/radiusd/radiusd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/radiusd/radiusd.c b/usr.sbin/radiusd/radiusd.c index 10775ec0e25..28ade7d19d3 100644 --- a/usr.sbin/radiusd/radiusd.c +++ b/usr.sbin/radiusd/radiusd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: radiusd.c,v 1.37 2024/07/01 03:27:31 yasuoka Exp $ */ +/* $OpenBSD: radiusd.c,v 1.38 2024/07/01 03:29:21 yasuoka Exp $ */ /* * Copyright (c) 2013, 2023 Internet Initiative Japan Inc. @@ -144,9 +144,9 @@ main(int argc, char *argv[]) TAILQ_INIT(&radiusd->listen); TAILQ_INIT(&radiusd->query); - log_init(debug); if (parse_config(conffile, radiusd) != 0) errx(EXIT_FAILURE, "config error"); + log_init(debug); if (noaction) { fprintf(stderr, "configuration OK\n"); exit(EXIT_SUCCESS); -- 2.20.1