mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
nanobts: Do not crash on an invalid TRX number
In case the specified trx number is not configured, do not crash but return NULL from the function. The libosmo-abis library should close the connection for us then.
This commit is contained in:
@@ -559,7 +559,7 @@ ipaccess_sign_link_up(void *unit_data, struct e1inp_line *line,
|
||||
struct gsm_bts_trx *trx = gsm_bts_trx_num(bts, dev->trx_id);
|
||||
|
||||
/* no OML link set yet? give up. */
|
||||
if (!bts->oml_link)
|
||||
if (!bts->oml_link || !trx)
|
||||
return NULL;
|
||||
|
||||
/* remove old RSL link for this TRX. */
|
||||
|
Reference in New Issue
Block a user