aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-11-06 17:57:44 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2019-11-06 17:58:36 +0100
commit5695f25b3dc97459af3106806bab0ae6641901bb (patch)
treee45da15c07e0566b8700bbcfb0f73e55f83c9f73
parented6cc3e51e5da26c5bd8d5d6b88b388fb0bcd4b5 (diff)
xua: Select only active ASPs during tx in Override traffic mode
-rw-r--r--src/xua_as_fsm.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/xua_as_fsm.c b/src/xua_as_fsm.c
index 04e592c..5d0b327 100644
--- a/src/xua_as_fsm.c
+++ b/src/xua_as_fsm.c
@@ -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;