get amf_ue from sess

amf_ue will be null and cause a coredump when type is OGS_SBI_OBJ_SESS_TYPE.
This commit is contained in:
Lester 2022-11-25 11:23:48 +08:00 committed by Sukchan Lee
parent a951d683d2
commit 3f772823a6
1 changed files with 4 additions and 0 deletions

View File

@ -75,6 +75,10 @@ void amf_nnrf_handle_nf_discover(
case OGS_SBI_OBJ_SESS_TYPE:
sess = (amf_sess_t *)sbi_object;
ogs_assert(sess);
amf_ue = sess->amf_ue;
ogs_assert(amf_ue);
ogs_error("[%d:%d] (NF discover) No [%s]", sess->psi, sess->pti,
ogs_sbi_service_type_to_name(service_type));
if (sess->payload_container_type) {