From 72438dc1ae97ed9f0c270c2a19f708cf364795b9 Mon Sep 17 00:00:00 2001 From: yrutschle Date: Tue, 4 Aug 2020 16:37:49 +0200 Subject: [PATCH] dont try to use conffile count if libconfig is not present, fix #274 --- sslh-conf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sslh-conf.c b/sslh-conf.c index 2fd0eaf..eb616ec 100644 --- a/sslh-conf.c +++ b/sslh-conf.c @@ -1,5 +1,5 @@ /* Generated by conf2struct (https://www.rutschle.net/tech/conf2struct/README) - * on Wed Jul 29 22:51:16 2020. + * on Tue Aug 4 16:36:09 2020. # conf2struct: generate libconf parsers that read to structs # Copyright (C) 2018-2019 Yves Rutschle @@ -1592,7 +1592,7 @@ int sslhcfg_cl_parse(int argc, char* argv[], struct sslhcfg_item* cfg) config_init(&c); - if (sslhcfg_conffile->count) { + if (sslhcfg_conffile && sslhcfg_conffile->count) { if (!c2s_parse_file(sslhcfg_conffile->filename[0], &c, &errmsg)) { fprintf(stderr, "%s\n", errmsg); return -1;