Harald Welte has uploaded this change for review. (
https://gerrit.osmocom.org/12869
Change subject: OML: Report short messages even for invalid TRX numbers in
down_fom()
......................................................................
OML: Report short messages even for invalid TRX numbers in down_fom()
Change-Id: I65b57d3fc714814db3ae3fd34398f307413fece8
---
M src/common/oml.c
1 file changed, 3 insertions(+), 5 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/69/12869/1
diff --git a/src/common/oml.c b/src/common/oml.c
index cbd2e1b..a3227f5 100644
--- a/src/common/oml.c
+++ b/src/common/oml.c
@@ -1093,12 +1093,10 @@
int ret;
if (msgb_l2len(msg) < sizeof(*foh)) {
- LOGP(DOML, LOGL_NOTICE, "Formatted O&M message too short\n");
trx = gsm_bts_trx_num(bts, foh->obj_inst.trx_nr);
- if (trx) {
- oml_tx_failure_event_rep(&trx->mo,
OSMO_EVT_MAJ_UKWN_MSG,
- "Formatted O&M message too
short");
- }
+ if (trx)
+ mo = &trx->mo;
+ oml_tx_failure_event_rep(mo, OSMO_EVT_MAJ_UKWN_MSG, "Formatted
O&M message too short");
return -EIO;
}
--
To view, visit https://gerrit.osmocom.org/12869
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I65b57d3fc714814db3ae3fd34398f307413fece8
Gerrit-Change-Number: 12869
Gerrit-PatchSet: 1
Gerrit-Owner: Harald Welte <[email protected]>