summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkn <kn@cvs.openbsd.org>2020-05-24 22:00:46 +0000
committerkn <kn@cvs.openbsd.org>2020-05-24 22:00:46 +0000
commit5c836456ba89e386dc40a2f7c545793d8bd04ba6 (patch)
tree1212a645d35969c1ad8470caf5f581ffa43d1fff
parent745a158048a358b4bae43da1c46dca710e5a99e9 (diff)
msg
-rw-r--r--usr.sbin/ldomctl/config.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ldomctl/config.c b/usr.sbin/ldomctl/config.c
index 700cac08616..690dbe35109 100644
--- a/usr.sbin/ldomctl/config.c
+++ b/usr.sbin/ldomctl/config.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: config.c,v 1.38 2020/05/22 21:54:20 kn Exp $ */
+/* $OpenBSD: config.c,v 1.39 2020/05/24 22:00:45 kn Exp $ */
/*
* Copyright (c) 2012, 2018 Mark Kettenis
@@ -2792,8 +2792,6 @@ build_config(const char *filename, int noaction)
SIMPLEQ_INIT(&conf.domain_list);
if (parse_config(filename, &conf) < 0)
exit(1);
- if (noaction)
- exit(0);
pri = md_read("pri");
if (pri == NULL)
@@ -2823,6 +2821,9 @@ build_config(const char *filename, int noaction)
if (memory > total_memory || primary_memory == 0)
errx(1, "not enough memory available");
+ if (noaction)
+ exit(0);
+
hvmd_init(hvmd);
primary = primary_init();