diff --git a/echosrv-conf.c b/echosrv-conf.c index 26182fd..738a883 100644 --- a/echosrv-conf.c +++ b/echosrv-conf.c @@ -1,5 +1,5 @@ /* Generated by conf2struct (https://www.rutschle.net/tech/conf2struct/README) - * on Sat May 8 07:03:13 2021. + * on Tue Jun 22 21:28:44 2021. # conf2struct: generate libconf parsers that read to structs # Copyright (C) 2018-2019 Yves Rutschle @@ -1137,6 +1137,10 @@ int echocfg_cl_parse(int argc, char* argv[], struct echocfg_item* cfg) } s = config_lookup(&c, "/"); + if (!s) { + fprintf(stderr, "Lookup of root config failed\n"); + return -1; + } res = read_block(s, cfg, table_echocfg, &errmsg); if (!res) { diff --git a/echosrv-conf.h b/echosrv-conf.h index d87431c..efda497 100644 --- a/echosrv-conf.h +++ b/echosrv-conf.h @@ -1,5 +1,5 @@ /* Generated by conf2struct (https://www.rutschle.net/tech/conf2struct/README) - * on Sat May 8 07:03:13 2021. + * on Tue Jun 22 21:28:44 2021. # conf2struct: generate libconf parsers that read to structs # Copyright (C) 2018-2019 Yves Rutschle diff --git a/sslh-conf.c b/sslh-conf.c index 0548db5..5f55656 100644 --- a/sslh-conf.c +++ b/sslh-conf.c @@ -1,5 +1,5 @@ /* Generated by conf2struct (https://www.rutschle.net/tech/conf2struct/README) - * on Tue Mar 16 20:23:24 2021. + * on Tue Jun 22 21:28:43 2021. # conf2struct: generate libconf parsers that read to structs # Copyright (C) 2018-2019 Yves Rutschle @@ -1793,6 +1793,10 @@ int sslhcfg_cl_parse(int argc, char* argv[], struct sslhcfg_item* cfg) } s = config_lookup(&c, "/"); + if (!s) { + fprintf(stderr, "Lookup of root config failed\n"); + return -1; + } res = read_block(s, cfg, table_sslhcfg, &errmsg); if (!res) { diff --git a/sslh-conf.h b/sslh-conf.h index 721db63..434eae3 100644 --- a/sslh-conf.h +++ b/sslh-conf.h @@ -1,5 +1,5 @@ /* Generated by conf2struct (https://www.rutschle.net/tech/conf2struct/README) - * on Tue Mar 16 20:23:24 2021. + * on Tue Jun 22 21:28:43 2021. # conf2struct: generate libconf parsers that read to structs # Copyright (C) 2018-2019 Yves Rutschle