From 1a0d15305d4c973949d3f9491bd42d170d670900 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 1 Aug 2018 13:34:08 +0200 Subject: 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 --- src/xua_asp_fsm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- cgit v1.2.3