[AMF/MME] Fixed crashes by M-TMSI (#2307)

This commit is contained in:
Sukchan Lee 2023-05-14 10:34:36 +09:00
parent e567a01ae8
commit 5c7263a5e5
2 changed files with 6 additions and 0 deletions

View File

@ -2437,6 +2437,9 @@ amf_m_tmsi_t *amf_m_tmsi_alloc(void)
int amf_m_tmsi_free(amf_m_tmsi_t *m_tmsi)
{
ogs_assert(m_tmsi);
/* Restore M-TMSI by Issue #2307 */
*m_tmsi &= 0x003fffff;
ogs_pool_free(&m_tmsi_pool, m_tmsi);
return OGS_OK;

View File

@ -3956,6 +3956,9 @@ mme_m_tmsi_t *mme_m_tmsi_alloc(void)
int mme_m_tmsi_free(mme_m_tmsi_t *m_tmsi)
{
ogs_assert(m_tmsi);
/* Restore M-TMSI by Issue #2307 */
*m_tmsi &= 0x003fffff;
ogs_pool_free(&m_tmsi_pool, m_tmsi);
return OGS_OK;