mirror of
https://github.com/yrutschle/sslh.git
synced 2025-06-04 01:21:20 +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)
|
/* 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
|
#define _GNU_SOURCE
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -547,6 +547,8 @@ int sslhcfg_cl_parse(int argc, char* argv[], struct sslhcfg_item* cfg) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sslhcfg_init(cfg);
|
||||||
|
|
||||||
if (sslhcfg_conffile->count) {
|
if (sslhcfg_conffile->count) {
|
||||||
if (!sslhcfg_parse_file(sslhcfg_conffile->filename[0], cfg, &errmsg)) {
|
if (!sslhcfg_parse_file(sslhcfg_conffile->filename[0], cfg, &errmsg)) {
|
||||||
fprintf(stderr, "%s\n", errmsg);
|
fprintf(stderr, "%s\n", errmsg);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Generated by conf2struct (https://www.rutschle.net/tech/conf2struct/README)
|
/* 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
|
#ifndef C2S_SSLHCFG_H
|
||||||
#define C2S_SSLHCFG_H
|
#define C2S_SSLHCFG_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user