From 4049455d744455dd48fa359a220822303fc3a5be Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 28 Jun 2010 17:09:29 +0800 Subject: bsc_msc: Remove use_count from the subscriber connection A channel will be released in case of * Errors via the clear_request callback... * no more transactions and operations are going on. This means that if we do something without a transaction the channel might be closed down right away. The bug fix will be to create a transaction/operation. --- openbsc/src/handover_logic.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'openbsc/src/handover_logic.c') diff --git a/openbsc/src/handover_logic.c b/openbsc/src/handover_logic.c index b75dc98ba..baf03b34b 100644 --- a/openbsc/src/handover_logic.c +++ b/openbsc/src/handover_logic.c @@ -231,7 +231,7 @@ static int ho_gsm48_ho_compl(struct gsm_lchan *new_lchan) trans_lchan_change(ho->old_lchan->conn, new_lchan->conn); rsl_lchan_set_state(ho->old_lchan, LCHAN_S_INACTIVE); - lchan_auto_release(ho->old_lchan); + lchan_release(ho->old_lchan, 0, 1); /* do something to re-route the actual speech frames ! */ @@ -259,7 +259,6 @@ static int ho_gsm48_ho_fail(struct gsm_lchan *old_lchan) bsc_del_timer(&ho->T3103); llist_del(&ho->list); conn = ho->new_lchan->conn; - put_subscr_con(conn); talloc_free(ho); return 0; -- cgit v1.2.3