From 27f7b0da6f30bc8ff35d8b33bdf77aa3bdb38fd4 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Mon, 25 Mar 2019 13:45:57 +0100 Subject: 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 --- src/gsm/ipa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3