mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
handover: lchan_free will only free the local resources.
lchan_free only free's the local resource of the BSC but does not release the channel at the BTS. Use lchan_release to properly release the channel. This code assumes that the timeout happens after a CHAN ACT ACK/NACK otherwise we have some problems. The comment indicates that this is the case.
This commit is contained in:
@@ -182,7 +182,9 @@ static void ho_T3103_cb(void *_ho)
|
||||
DEBUGP(DHO, "HO T3103 expired\n");
|
||||
counter_inc(net->stats.handover.timeout);
|
||||
|
||||
lchan_free(ho->new_lchan);
|
||||
ho->new_lchan->conn->ho_lchan = NULL;
|
||||
ho->new_lchan->conn = NULL;
|
||||
lchan_release(ho->new_lchan, 0, 1);
|
||||
llist_del(&ho->list);
|
||||
talloc_free(ho);
|
||||
}
|
||||
|
Reference in New Issue
Block a user