[Fix] if 'node' config parameter is set as a string, nothing complain and all nodes are set to id '0'.

This commit is contained in:
Gregory Duchatelet
2015-07-06 11:20:31 +02:00
parent 5240a5723a
commit 00deff9069

View File

@@ -266,6 +266,12 @@ parse_config(const char *config_file, t_configuration_options *options)
exit(ERR_BAD_CONFIG);
}
if (options->node == 0)
{
log_err(_("'node' must be an integer > 0\n"));
exit(ERR_BAD_CONFIG);
}
if (*options->node_name == '\0')
{
log_err(_("required parameter 'node_name' was not found\n"));