From aaa40b868896b77f47890c0b21fe4a6baa34adb6 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 16 Sep 2010 20:48:15 +0800 Subject: bsc_api: Do not free the subscriber conn on clear and clear request Do not free the GSM Subscriber Connection when a channel is failing or if a clear is requested, instead just give up _all_ the channels, reset them to NULL and free the remaining channels. --- openbsc/src/gsm_04_08.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'openbsc/src/gsm_04_08.c') diff --git a/openbsc/src/gsm_04_08.c b/openbsc/src/gsm_04_08.c index f022c04a9..b451be748 100644 --- a/openbsc/src/gsm_04_08.c +++ b/openbsc/src/gsm_04_08.c @@ -326,6 +326,8 @@ void gsm0408_clear_request(struct gsm_subscriber_connection* conn, uint32_t caus if (trans->conn == conn) trans_free(trans); } + + subscr_con_free(conn); } /* Chapter 9.2.14 : Send LOCATION UPDATING REJECT */ -- cgit v1.2.3