Change in osmo-bts[master]: oml: fix oml_mo_tx_sw_act_rep(): do not msgb_put() FOM header twice

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Sat May 16 12:22:02 UTC 2020


Vadim Yanitskiy has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bts/+/18326 )


Change subject: oml: fix oml_mo_tx_sw_act_rep(): do not msgb_put() FOM header twice
......................................................................

oml: fix oml_mo_tx_sw_act_rep(): do not msgb_put() FOM header twice

This redundant call to msgb_put() appends five '00'O octets to the
"Software Activated Report" message, so they look like an unknown
attribute(s). I accidentally noticed this in Wireshark.

Change-Id: I7377575135f4a154572891d1b5b39ff814b97f38
---
M src/common/oml.c
1 file changed, 0 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/26/18326/1

diff --git a/src/common/oml.c b/src/common/oml.c
index 7a62faa..7e3b834 100644
--- a/src/common/oml.c
+++ b/src/common/oml.c
@@ -472,7 +472,6 @@
 	if (!nmsg)
 		return -ENOMEM;
 
-	msgb_put(nmsg, sizeof(struct abis_om_fom_hdr));
 	return oml_mo_send_msg(mo, nmsg, NM_MT_SW_ACTIVATED_REP);
 }
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/18326
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I7377575135f4a154572891d1b5b39ff814b97f38
Gerrit-Change-Number: 18326
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200516/bdbddb56/attachment.htm>


More information about the gerrit-log mailing list