From cf6bf63a0de48c3322efd3c9d5e05759085fe504 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 5 Apr 2010 18:15:19 +0200 Subject: 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. --- openbsc/src/bsc_msc_ip.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'openbsc') 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; } -- cgit v1.2.3