aboutsummaryrefslogtreecommitdiffstats
path: root/tests/handover/handover_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/handover/handover_test.c')
-rw-r--r--tests/handover/handover_test.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/handover/handover_test.c b/tests/handover/handover_test.c
index bf7350c62..7a2e9645d 100644
--- a/tests/handover/handover_test.c
+++ b/tests/handover/handover_test.c
@@ -186,7 +186,8 @@ static struct gsm_bts *create_bts(int arfcn)
void create_conn(struct gsm_lchan *lchan)
{
- lchan->conn = bsc_subscr_con_allocate(lchan);
+ lchan->conn = bsc_subscr_con_allocate(lchan->ts->trx->bts->network);
+ lchan->conn->lchan = lchan;
}
/* create lchan */
@@ -1592,7 +1593,7 @@ int main(int argc, char **argv)
struct gsm_subscriber_connection *conn = lchan[i]->conn;
lchan[i]->conn = NULL;
conn->lchan = NULL;
- bsc_subscr_con_free(conn);
+ osmo_fsm_inst_term(conn->fi, OSMO_FSM_TERM_REGULAR, NULL);
lchan_free(lchan[i]);
}