aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/abis.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/abis.c')
-rw-r--r--src/common/abis.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/common/abis.c b/src/common/abis.c
index c1e1c4f..7a08e18 100644
--- a/src/common/abis.c
+++ b/src/common/abis.c
@@ -74,6 +74,11 @@ int abis_oml_sendmsg(struct msgb *msg)
abis_push_ipa(msg, 0xff);
+ if (!bts->oml_link) {
+ msgb_free(msg);
+ return 0;
+ }
+
return abis_tx((struct ipabis_link *) bts->oml_link, msg);
}
@@ -516,9 +521,9 @@ void abis_close(struct ipabis_link *link)
/* for now, we simply terminate the program and re-spawn */
if (link->bts)
- bts_shutdown(link->bts);
+ bts_shutdown(link->bts, "Abis close / OML");
else if (link->trx)
- bts_shutdown(link->trx->bts);
+ bts_shutdown(link->trx->bts, "Abis close / RSL");
else
exit(43);
}