diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-09-16 20:48:15 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-09-16 20:53:04 +0800 |
commit | aaa40b868896b77f47890c0b21fe4a6baa34adb6 (patch) | |
tree | dd2c7391b5abf2b490b49266e7414b7d045feee0 /openbsc/src/gsm_04_08.c | |
parent | 2f9d1ef39ac66acfe7796db985377ef80a627d82 (diff) |
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.
Diffstat (limited to 'openbsc/src/gsm_04_08.c')
-rw-r--r-- | openbsc/src/gsm_04_08.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 */ |