aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-11-08 13:36:55 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2018-11-09 15:50:44 +0000
commitf535cc84c7090ba1340d756ad2b03b13572aeadf (patch)
treec5b2c0a546cef027edf0a59513e5d826261dab84
parent9dfa53c6e4afc479af34671fbdf158e1ed7918d4 (diff)
abis_nm: parse_attr_resp_info_unreported: Fix offset calculation
See following specs for related information: * 3GPP TS 52.021 §8.11.3 Get Attribute Response * 3GPP TS 52.021 §9.4.64 Get Attribute Response Info Related: OS#3624 Change-Id: Ie61d70bc28427d5d879638516a36f590ce98bdc7
-rw-r--r--src/osmo-bsc/abis_nm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo-bsc/abis_nm.c b/src/osmo-bsc/abis_nm.c
index d147606ac..8f5a51455 100644
--- a/src/osmo-bsc/abis_nm.c
+++ b/src/osmo-bsc/abis_nm.c
@@ -495,7 +495,7 @@ static inline const uint8_t *parse_attr_resp_info_unreported(uint8_t bts_nr, con
/* the data starts right after the list of unreported attributes + space for length of that list */
if (out_len)
- *out_len = ari_len - (num_unreported + 2);
+ *out_len = ari_len - (num_unreported + 1);
return ari + num_unreported + 1; /* we have to account for 1st byte with number of unreported attributes */
}