[AUSF] Fixed crash due to ausf_ue_add (#2637)

This commit is contained in:
Sukchan Lee 2023-09-25 22:33:03 +09:00
parent 5a220f1a83
commit 445bf26ef2
2 changed files with 4 additions and 1 deletions

View File

@ -129,7 +129,6 @@ void ausf_state_operational(ogs_fsm_t *s, ausf_event_t *e)
if (!ausf_ue) {
ausf_ue = ausf_ue_add(
message.AuthenticationInfo->supi_or_suci);
ogs_assert(ausf_ue);
}
}
break;

View File

@ -126,6 +126,10 @@ ausf_ue_t *ausf_ue_add(char *suci)
ogs_assert(suci);
ogs_pool_alloc(&ausf_ue_pool, &ausf_ue);
if (!ausf_ue) {
ogs_error("ogs_pool_alloc() failed");
return NULL;
}
ogs_assert(ausf_ue);
memset(ausf_ue, 0, sizeof *ausf_ue);