diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-08 21:41:16 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-08 22:11:24 +0200 |
commit | d0ac8866f1cb3a0de21900438bc8ecf853920a14 (patch) | |
tree | 7c727d44f84cb921738384db709052f056211937 /openbsc/src/bssap.c | |
parent | 73f9a65f12e3a128b21ff6ad5b1b821fd6d26e71 (diff) |
bssap: Use the new method to give up the secondary lchan and related resources
Diffstat (limited to 'openbsc/src/bssap.c')
-rw-r--r-- | openbsc/src/bssap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/bssap.c b/openbsc/src/bssap.c index 385a935a7..e78d727ef 100644 --- a/openbsc/src/bssap.c +++ b/openbsc/src/bssap.c @@ -41,6 +41,7 @@ #define BSSMAP_MSG_HEADROOM 128 static void bts_queue_send(struct msgb *msg, int link_id); +static void bssmap_free_secondary(struct bss_sccp_connection_data *data); static const struct tlv_definition bss_att_tlvdef = { @@ -192,8 +193,7 @@ static int bssmap_handle_clear_command(struct sccp_connection *conn, msg->lchan->msc_data->lchan = NULL; /* we might got killed during an assignment */ - if (msg->lchan->msc_data->secondary_lchan) - put_subscr_con(&msg->lchan->msc_data->secondary_lchan->conn, 0); + bssmap_free_secondary(msg->lchan->msc_data); msg->lchan->msc_data = NULL; put_subscr_con(&msg->lchan->conn, 0); |