clean security context if KSI is INVALID(7)

This commit is contained in:
Sukchan Lee 2018-01-26 09:08:50 +09:00
parent 09969e859d
commit 28237ea6af
1 changed files with 6 additions and 0 deletions

View File

@ -60,6 +60,12 @@ status_t emm_handle_attach_request(
mme_ue->nhcc = 1;
}
d_trace(5, " KSI[%d]\n", eps_attach_type->nas_key_set_identifier);
if (eps_attach_type->nas_key_set_identifier == 7)
{
CLEAR_SECURITY_CONTEXT(mme_ue);
}
/* Set EPS Attach Type */
memcpy(&mme_ue->nas_eps.attach, eps_attach_type,
sizeof(nas_eps_attach_type_t));