From 3cda07754184867c49b7116f6dc000d03c0e33ea Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Wed, 4 May 2016 15:36:56 +0200 Subject: IuCS: properly clean up conn on release Don't call msc_subscr_con_free() directly, instead use gsm0408_clear_request(), which properly cleans up all pending operations before freeing the connection. --- openbsc/src/osmo-cscn/iucs_ranap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbsc/src/osmo-cscn/iucs_ranap.c') diff --git a/openbsc/src/osmo-cscn/iucs_ranap.c b/openbsc/src/osmo-cscn/iucs_ranap.c index f88a55242..f34a2003e 100644 --- a/openbsc/src/osmo-cscn/iucs_ranap.c +++ b/openbsc/src/osmo-cscn/iucs_ranap.c @@ -91,7 +91,7 @@ int iucs_rx_ranap_event(struct gsm_network *network, case IU_EVENT_LINK_INVALIDATED: LOGP(DIUCS, LOGL_INFO, "IuCS release for %s\n", subscr_name(conn->subscr)); - msc_subscr_con_free(conn); + gsm0408_clear_request(conn, 0); return 0; case IU_EVENT_SECURITY_MODE_COMPLETE: -- cgit v1.2.3