diff options
Diffstat (limited to 'usr.sbin/ctld/uclparse.c')
-rw-r--r-- | usr.sbin/ctld/uclparse.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/ctld/uclparse.c b/usr.sbin/ctld/uclparse.c index fb2cce0..3cf95cf 100644 --- a/usr.sbin/ctld/uclparse.c +++ b/usr.sbin/ctld/uclparse.c @@ -886,9 +886,8 @@ uclparse_conf(struct conf *newconf, const char *path) conf = newconf; parser = ucl_parser_new(0); - ucl_parser_add_file(parser, path); - if (ucl_parser_get_error(parser)) { + if (!ucl_parser_add_file(parser, path)) { log_warn("unable to parse configuration file %s: %s", path, ucl_parser_get_error(parser)); return (1); |