summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Benoit <benno@cvs.openbsd.org>2017-01-21 12:04:38 +0000
committerSebastian Benoit <benno@cvs.openbsd.org>2017-01-21 12:04:38 +0000
commit317a3316db00a846d0557607b3632f91118e82f7 (patch)
treedc30b9ca4efe1d3fab30c8c0a119f43b28485f61
parent76596b153a50294550cf49e80e6ed5b5ec0f40ee (diff)
dont print config if its broken
ok florian@
-rw-r--r--usr.sbin/acme-client/parse.y8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/acme-client/parse.y b/usr.sbin/acme-client/parse.y
index 2b51c53e26d..b1b34307e0c 100644
--- a/usr.sbin/acme-client/parse.y
+++ b/usr.sbin/acme-client/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.11 2017/01/21 11:51:58 florian Exp $ */
+/* $OpenBSD: parse.y,v 1.12 2017/01/21 12:04:37 benno Exp $ */
/*
* Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -760,14 +760,14 @@ parse_config(const char *filename, int opts)
}
}
- if (opts & ACME_OPT_CHECK)
- print_config(conf);
-
if (errors) {
clear_config(conf);
return (NULL);
}
+ if (opts & ACME_OPT_CHECK)
+ print_config(conf);
+
return (conf);
}