aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-05 18:15:19 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-04-05 18:15:19 +0200
commitcf6bf63a0de48c3322efd3c9d5e05759085fe504 (patch)
treefb624454442eaffc8dfcdf44904be0d697abbd21
parent88b614110f469e7729361a1363b8425a8e9ddde1 (diff)
bsc_msc_ip: Use the force_free method to free the SCCP connection
Before the connection was not properly removed from the list of connections and our connection list contained a dangling pointer.
-rw-r--r--openbsc/src/bsc_msc_ip.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/openbsc/src/bsc_msc_ip.c b/openbsc/src/bsc_msc_ip.c
index 6b8441c89..e6cf6f1be 100644
--- a/openbsc/src/bsc_msc_ip.c
+++ b/openbsc/src/bsc_msc_ip.c
@@ -809,8 +809,7 @@ static void msc_connection_was_lost(struct bsc_msc_connection *msc)
/* force the close by poking stuff */
if (bss->sccp) {
- bss->sccp->connection_state = SCCP_CONNECTION_STATE_REFUSED;
- sccp_connection_free(bss->sccp);
+ sccp_connection_force_free(bss->sccp);
bss->sccp = NULL;
}