xua: Select only active ASPs during tx in Override traffic mode

Change-Id: I7eb049011b81c5141fd3edf6f0ae0202ffb2c6c9
This commit is contained in:
Pau Espin 2019-11-06 17:57:44 +01:00
parent ed6cc3e51e
commit 5695f25b3d
1 changed files with 1 additions and 3 deletions

View File

@ -83,9 +83,7 @@ static struct osmo_ss7_asp *xua_as_select_asp_override(struct osmo_ss7_as *as)
/* FIXME: proper selection of the ASP based on the SLS! */
for (i = 0; i < ARRAY_SIZE(as->cfg.asps); i++) {
asp = as->cfg.asps[i];
if (!asp)
continue;
if (asp)
if (asp && osmo_ss7_asp_active(asp))
break;
}
return asp;