ss7: Fix finding asp by socket addr if local ip addr is 0.0.0.0
Fixes: 80b1355819
Change-Id: I319e4983b35f63846ed7e8bfa8e8e3688c5d16e6
This commit is contained in:
parent
51efa023c9
commit
6168660986
|
@ -1167,7 +1167,8 @@ osmo_ss7_asp_find_by_socket_addr(int fd)
|
|||
continue;
|
||||
|
||||
for (i = 0; i < asp->cfg.local.host_cnt; i++) {
|
||||
if (!asp->cfg.local.host[i] || !strcmp(asp->cfg.local.host[i], hostbuf_l))
|
||||
bool is_any = !asp->cfg.local.host[i] || !strcmp(asp->cfg.local.host[i], "0.0.0.0");
|
||||
if (is_any || !strcmp(asp->cfg.local.host[i], hostbuf_l))
|
||||
break;
|
||||
}
|
||||
if (i == asp->cfg.local.host_cnt)
|
||||
|
|
Loading…
Reference in New Issue