mirror of https://git.48k.eu/ogserver
#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
parent
6066b32603
commit
280df58917
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue