mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-25 16:16:29 +00:00
repmgr: disallow node ids which are not positive signed 32 bit integers
Fixes GitHub #280
This commit is contained in:
4
config.c
4
config.c
@@ -448,6 +448,10 @@ _parse_config(t_configuration_options *options, ItemList *error_list)
|
||||
{
|
||||
item_list_append(error_list, _("\"node\": must be greater than zero"));
|
||||
}
|
||||
else if (options->node < 0)
|
||||
{
|
||||
item_list_append(error_list, _("\"node\": must be a positive signed 32 bit integer, i.e. 2147483647 or less"));
|
||||
}
|
||||
|
||||
if (strlen(options->conninfo))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user