mirror of
https://github.com/yrutschle/sslh.git
synced 2025-05-28 14:19:19 +03:00
c2s fix: initialise root config structure even if no config file is specified
This commit is contained in:
parent
7baf7f724c
commit
5a213c9650
@ -1,5 +1,5 @@
|
||||
/* Generated by conf2struct (https://www.rutschle.net/tech/conf2struct/README)
|
||||
* on Fri Feb 8 22:36:20 2019. */
|
||||
* on Sat Mar 9 11:35:00 2019. */
|
||||
|
||||
#define _GNU_SOURCE
|
||||
#include <string.h>
|
||||
@ -547,6 +547,8 @@ int sslhcfg_cl_parse(int argc, char* argv[], struct sslhcfg_item* cfg) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
sslhcfg_init(cfg);
|
||||
|
||||
if (sslhcfg_conffile->count) {
|
||||
if (!sslhcfg_parse_file(sslhcfg_conffile->filename[0], cfg, &errmsg)) {
|
||||
fprintf(stderr, "%s\n", errmsg);
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Generated by conf2struct (https://www.rutschle.net/tech/conf2struct/README)
|
||||
* on Fri Feb 8 22:36:20 2019. */
|
||||
* on Sat Mar 9 11:35:00 2019. */
|
||||
|
||||
#ifndef C2S_SSLHCFG_H
|
||||
#define C2S_SSLHCFG_H
|
||||
|
Loading…
x
Reference in New Issue
Block a user