From 3cb68518fc0de73f785ac386c6c4aec604320a2a Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Wed, 27 Mar 2019 17:45:00 +0100 Subject: ipa: Fix ipa_ccm_id_resp_parse on big endian systems Change-Id: Iedc46ab53a4f76bbd98741c065fad3d9042a34a4 --- src/gsm/ipa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gsm/ipa.c') diff --git a/src/gsm/ipa.c b/src/gsm/ipa.c index 8e64a1eb..1563d0a3 100644 --- a/src/gsm/ipa.c +++ b/src/gsm/ipa.c @@ -204,8 +204,8 @@ int ipa_ccm_id_resp_parse(struct tlv_parsed *dec, const uint8_t *buf, unsigned i while (len >= 3) { len -= 3; - t_len = *cur++ << 8; - t_len += *cur++; + t_len = osmo_load16be(cur); + cur += 2; t_tag = *cur++; if (t_len > len + 1) { -- cgit v1.2.3