From f535aad6124bca2000db7d8d120250dc6a6fe384 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 8 Apr 2010 21:41:41 +0200 Subject: bssap: Reset the msc_data on the lchan earlier/just in case The refcount should drop to zero immediately and then the msc_data would be reset automatically but it is better to remove all traces of it right away. --- openbsc/src/bssap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/openbsc/src/bssap.c b/openbsc/src/bssap.c index e78d727ef..738f3e3ea 100644 --- a/openbsc/src/bssap.c +++ b/openbsc/src/bssap.c @@ -480,6 +480,7 @@ static void continue_new_assignment(struct gsm_lchan *new_lchan) if (new_lchan->msc_data->secondary_lchan != new_lchan) { LOGP(DMSC, LOGL_ERROR, "This is not the secondary channel?\n"); + new_lchan->msc_data = NULL; put_subscr_con(&new_lchan->conn, 0); return; } -- cgit v1.2.3