path: root/src
diff options
authorHarald Welte <laforge@gnumonks.org>2019-02-12 19:52:04 +0100
committerHarald Welte <laforge@gnumonks.org>2019-03-19 13:44:12 +0000
commit69b04a29be7def809f480dc5cabe89f67196ad1c (patch)
treeeecb40667426a476028c99fc38050690eeecea0b /src
parentfc09a7c01026b3dbc44c5677f8b47e64a1a0af80 (diff)
OML: Fix encoded length value of OML GET ATTRIBUTES
Before this patch, all OML GET ATTRIBUTES messages were encoded with an erroneous OML header length value. The length value was always three bytes less than the actual message length. This patch fixes the problem. Change-Id: I56068de0bb14a99ec39be587e542e27cddb7d1df Closes: OS#3799
Diffstat (limited to 'src')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo-bsc/abis_nm.c b/src/osmo-bsc/abis_nm.c
index f1306fcfb..826c1e28d 100644
--- a/src/osmo-bsc/abis_nm.c
+++ b/src/osmo-bsc/abis_nm.c
@@ -1717,7 +1717,7 @@ int abis_nm_get_attr(struct gsm_bts *bts, uint8_t obj_class, uint8_t bts_nr, uin
msg = nm_msgb_alloc();
oh = (struct abis_om_hdr *) msgb_put(msg, ABIS_OM_FOM_HDR_SIZE);
- fill_om_fom_hdr(oh, attr_len, NM_MT_GET_ATTR, obj_class,
+ fill_om_fom_hdr(oh, TL16V_GROSS_LEN(attr_len), NM_MT_GET_ATTR, obj_class,
bts_nr, trx_nr, ts_nr);
msgb_tl16v_put(msg, NM_ATT_LIST_REQ_ATTR, attr_len, attr);