FS-6506 --resolve Technically when you are not using groups you do not add a <users> tag inside <domain> you just put several <user> tags in <domain> This patch will consume an extraneous <users> tag and move on making it work either way.

This commit is contained in:
Anthony Minessale 2014-05-07 00:05:55 +05:00
parent 9464549eb6
commit 4a543b29a2
1 changed files with 4 additions and 0 deletions

View File

@ -1356,6 +1356,10 @@ SWITCH_DECLARE(void) switch_load_network_lists(switch_bool_t reload)
switch_event_destroy(&my_params);
if ((ut = switch_xml_child(x_domain, "users"))) {
x_domain = ut;
}
for (ut = switch_xml_child(x_domain, "user"); ut; ut = ut->next) {
const char *user_cidr = switch_xml_attr(ut, "cidr");
const char *id = switch_xml_attr(ut, "id");