forked from acouzens/open5gs
[AMF/MME] Fixed crashes by M-TMSI (#2307)
This commit is contained in:
parent
e567a01ae8
commit
5c7263a5e5
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue