summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();