#915 Fix og_json_parse_clients flags for empty arrays

This patch prevents the flag OG_REST_PARAM_ADDR to be activated when the array
is empty.
master
Roberto Hueso Gómez 2019-11-08 10:35:55 +01:00 committed by OpenGnSys Support Team
parent 6066b32603
commit 280df58917
1 changed files with 2 additions and 2 deletions

View File

@ -3337,9 +3337,9 @@ static int og_json_parse_clients(json_t *element, struct og_msg_params *params)
params->ips_array[params->ips_array_len++] =
json_string_value(k);
}
params->flags |= OG_REST_PARAM_ADDR;
params->flags |= OG_REST_PARAM_ADDR;
}
return 0;
}