Fix the bug in building TAU accept message (#29)

- TAU accept should be integrity protected
This commit is contained in:
Sukchan Lee 2018-05-21 15:17:34 +09:00
parent 6ae20c9d1c
commit 76c84bdaa4
2 changed files with 5 additions and 1 deletions

View File

@ -333,6 +333,10 @@ status_t emm_build_tau_accept(pkbuf_t **emmbuf, mme_ue_t *mme_ue)
d_assert(mme_ue, return CORE_ERROR,);
memset(&message, 0, sizeof(message));
message.h.security_header_type =
NAS_SECURITY_HEADER_INTEGRITY_PROTECTED_AND_CIPHERED;
message.h.protocol_discriminator = NAS_PROTOCOL_DISCRIMINATOR_EMM;
message.emm.h.protocol_discriminator = NAS_PROTOCOL_DISCRIMINATOR_EMM;
message.emm.h.message_type = NAS_TRACKING_AREA_UPDATE_ACCEPT;

View File

@ -391,7 +391,7 @@ status_t nas_send_tau_accept(
status_t rv;
pkbuf_t *emmbuf = NULL;
d_assert(mme_ue, return CORE_ERROR, "Null param");
d_assert(mme_ue, return CORE_ERROR,);
d_trace(3, "[EMM] Tracking area update accept\n");
d_trace(5, " IMSI[%s]\n", mme_ue->imsi_bcd);