diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-06-25 14:47:57 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-09-11 17:46:54 +0200 |
commit | 8c176cc6ab0358b712fbd54a31aeddf2d583e070 (patch) | |
tree | 564dda4dcb72edf13510e3fc4d1003f9decab6bb | |
parent | 7a7c2f85679bae57d17e43c3f8595d98f4ee629b (diff) |
msc: Only kill connections belonging to the given MSC
When a MSC connection drops, only kill the connections that
belong to the given MSC and not all other connections.
-rw-r--r-- | openbsc/src/osmo-bsc/osmo_bsc_sccp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_sccp.c b/openbsc/src/osmo-bsc/osmo_bsc_sccp.c index cc4eedfb8..1410cc67b 100644 --- a/openbsc/src/osmo-bsc/osmo_bsc_sccp.c +++ b/openbsc/src/osmo-bsc/osmo_bsc_sccp.c @@ -272,8 +272,10 @@ static void bsc_close_connections(struct bsc_msc_connection *msc_con) { struct osmo_bsc_sccp_con *con, *tmp; - llist_for_each_entry_safe(con, tmp, &active_connections, entry) - bsc_sccp_force_free(con); + llist_for_each_entry_safe(con, tmp, &active_connections, entry) { + if (con->msc->msc_con == msc_con) + bsc_sccp_force_free(con); + } } static int handle_msc_signal(unsigned int subsys, unsigned int signal, |