aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-08-01 13:34:08 +0200
committerHarald Welte <laforge@gnumonks.org>2018-08-01 13:34:08 +0200
commit1a0d15305d4c973949d3f9491bd42d170d670900 (patch)
tree751bfd2e49c5c7b57a96c54cb941d71c3c8bd8f4
parent688f2304056029f47073a549d7e41043eab5a0fd (diff)
Migrate from ipa_ccm_idtag_parse() to ipa_ccm_id_resp_parse()
In libosmocore Change-ID I1834d90fbcdbfcb05f5b8cfe39bfe9543737ef8f we have introduced ipa_ccm_id_resp_parse() as a bugfixed replacement of ipa_ccm_idtag_parse(). The main difference is that the returned "value" parts now have a correct reported "length", whereas before this commit they all reported a one-byte too-long "length" for each IE. Change-Id: I3c79d3bb56cc1370b9922e64d13d2d5508fd8039
-rw-r--r--src/xua_asp_fsm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xua_asp_fsm.c b/src/xua_asp_fsm.c
index 93c76cb..78a4f25 100644
--- a/src/xua_asp_fsm.c
+++ b/src/xua_asp_fsm.c
@@ -806,7 +806,7 @@ static void ipa_asp_fsm_wait_id_resp(struct osmo_fsm_inst *fi, uint32_t event, v
case IPA_ASP_E_ID_RESP:
/* resolve the AS based on the identity provided by peer. */
msg = data;
- rc = ipa_ccm_idtag_parse(&tp, msgb_l2(msg)+2, msgb_l2len(msg)-2);
+ rc = ipa_ccm_id_resp_parse(&tp, msgb_l2(msg)+1, msgb_l2len(msg)-1);
if (rc < 0) {
LOGPFSML(fi, LOGL_ERROR, "Error %d parsing ID_RESP TLV: %s\n", rc,
msgb_hexdump(msg));