mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-02 13:03:33 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user