summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2019-03-25 13:45:57 +0100
committerHarald Welte <laforge@gnumonks.org>2019-03-25 14:43:52 +0000
commit27f7b0da6f30bc8ff35d8b33bdf77aa3bdb38fd4 (patch)
treeba7ac09da40560385a1c3b7789c12c4a68e458ef
parent2f65bb1b0108702c52ef6c66d5c46a1b4544d445 (diff)
Revert "ipa_ccm_idtag_parse*: Fix reported length value"
This reverts commit 1261db15058cfa94615f26c1083bb8a38d09218b. The patch broke openbsc's external tests, and currently it is unclear whether it is just an error in the test or if openbsc makes wrong assumptions about the length value. Let's revert the patch to unblock the master-openbsc jenkins job. Related: OS#3851 Change-Id: I9adea35ff6de36c1611c7f85dde1b15bc1c0e786
-rw-r--r--src/gsm/ipa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gsm/ipa.c b/src/gsm/ipa.c
index b6fdc985..d423c262 100644
--- a/src/gsm/ipa.c
+++ b/src/gsm/ipa.c
@@ -128,7 +128,7 @@ int ipa_ccm_idtag_parse_off(struct tlv_parsed *dec, unsigned char *buf, int len,
DEBUGPC(DLMI, "%s='%s' ", ipa_ccm_idtag_name(t_tag), cur);
- dec->lv[t_tag].len = t_len - 1 - len_offset;
+ dec->lv[t_tag].len = t_len - len_offset;
dec->lv[t_tag].val = cur;
cur += t_len - len_offset;