possible fix for FSCORE-575
This commit is contained in:
parent
74a3f20ed7
commit
7996819fca
|
@ -2393,10 +2393,8 @@ sofia_gateway_t *sofia_reg_find_gateway_by_realm__(const char *file, const char
|
||||||
switch_mutex_lock(mod_sofia_globals.hash_mutex);
|
switch_mutex_lock(mod_sofia_globals.hash_mutex);
|
||||||
for (hi = switch_hash_first(NULL, mod_sofia_globals.gateway_hash); hi; hi = switch_hash_next(hi)) {
|
for (hi = switch_hash_first(NULL, mod_sofia_globals.gateway_hash); hi; hi = switch_hash_next(hi)) {
|
||||||
switch_hash_this(hi, &var, NULL, &val);
|
switch_hash_this(hi, &var, NULL, &val);
|
||||||
if ((gateway = (sofia_gateway_t *) val)) {
|
if ((gateway = (sofia_gateway_t *) val) && gateway->register_realm && !strcasecmp(gateway->register_realm, key)) {
|
||||||
if (!strcasecmp(gateway->register_realm, key)) {
|
break;
|
||||||
break;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
gateway = NULL;
|
gateway = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue