From: yasuoka Date: Mon, 1 Jul 2024 03:29:21 +0000 (+0000) Subject: Show config error when -n X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c917c3ca77c7677583359ebbb28f93ac8394a11a;p=openbsd Show config error when -n --- 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);