diff options
author | Harald Welte <laforge@gnumonks.org> | 2015-09-18 01:23:55 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2015-09-18 01:23:55 +0200 |
commit | 6286880caad4e731ba3656c5d73cd9153f429b15 (patch) | |
tree | 61c672a4d4daaf83adab62c157b5976130b63fdd /src/hnbgw_hnbap.c | |
parent | 1c2ada0e7f99126d4cd757a360a30b4fb12455ba (diff) |
the Context ID is a 24bit number, we cannot use len = 4 bytes!
Diffstat (limited to 'src/hnbgw_hnbap.c')
-rw-r--r-- | src/hnbgw_hnbap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hnbgw_hnbap.c b/src/hnbgw_hnbap.c index 25bc272..4896f34 100644 --- a/src/hnbgw_hnbap.c +++ b/src/hnbgw_hnbap.c @@ -70,6 +70,7 @@ static int hnbgw_tx_ue_register_acc(struct ue_context *ue) OCTET_STRING_fromBuf(&accept.uE_Identity.choice.iMSI, (const char *)encoded_imsi, encoded_imsi_len); asn1_u32_to_bitstring(&accept.context_ID, &ue->context_id); + accept.context_ID.size = 3; /* 24bit field */ memset(&accept_out, 0, sizeof(accept_out)); rc = hnbap_encode_ueregisteraccepties(&accept_out, &accept); |