1
0
mirror of https://github.com/moparisthebest/sslh synced 2024-11-21 08:35:01 -05:00

Merge pull request #47 from hogarthj/master

Build fails in CentOS6 - this fixes it
This commit is contained in:
yrutschle 2015-04-18 10:35:02 +02:00
commit 728181109c

View File

@ -280,7 +280,10 @@ static int config_parse(char *filename, struct addrinfo **listen, struct proto *
config_init(&config);
if (config_read_file(&config, filename) == CONFIG_FALSE) {
if (config_error_type(&config) == CONFIG_ERR_PARSE) {
/* If it's a parse error then there will be a line number for the failure
* an I/O error (such as non-existent file) will have the error line as 0
*/
if (config_error_line(&config) != 0) {
fprintf(stderr, "%s:%d:%s\n",
filename,
config_error_line(&config),