fix: Add the exception handling (#804)

When UE/gNB repeatedly sends NGAP message repeatedly, AMF crashed.
Exception routines have been added to resolve this issue.
This commit is contained in:
Sukchan Lee 2021-02-15 12:17:33 -05:00
parent 9b5cc4a568
commit b6bcbac3e3
20 changed files with 159 additions and 41 deletions

View file

@ -1022,7 +1022,7 @@ ogs_sbi_xact_t *ogs_sbi_xact_add(
ogs_assert(sbi_object);
ogs_pool_alloc(&xact_pool, &xact);
ogs_assert(xact);
if (!xact) return NULL;
memset(xact, 0, sizeof(ogs_sbi_xact_t));
xact->target_nf_type = target_nf_type;