diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-03-27 17:45:00 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-03-28 12:22:36 +0000 |
commit | 3cb68518fc0de73f785ac386c6c4aec604320a2a (patch) | |
tree | 6830dcbc8427ad51c041b7addf37a18d3b637334 /src/gsm/ipa.c | |
parent | deeab473a030cdb68f7a258b0f6629444933ac1e (diff) |
ipa: Fix ipa_ccm_id_resp_parse on big endian systems
Change-Id: Iedc46ab53a4f76bbd98741c065fad3d9042a34a4
Diffstat (limited to 'src/gsm/ipa.c')
-rw-r--r-- | src/gsm/ipa.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |