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.
This commit is contained in:
Holger Hans Peter Freyther 2011-06-25 14:47:57 +02:00
parent a8a5ffa1dc
commit aa54e28857
1 changed files with 4 additions and 2 deletions

View File

@ -269,8 +269,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,