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.
This commit is contained in:
Holger Hans Peter Freyther
2010-04-08 21:41:41 +02:00
parent d0ac8866f1
commit f535aad612

View File

@@ -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;
}