diff options
Diffstat (limited to 'src/gsm')
-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) { |