ngap: fix invalid access of amf ID when context wasn't created yet

master
Andre Puschmann 3 years ago
parent bed35c747c
commit f3ee8b2078

@ -251,6 +251,11 @@ bool ngap::ue::send_ue_context_release_request(asn1::ngap::cause_c cause)
return false; return false;
} }
if (not ctxt.amf_ue_ngap_id.has_value()) {
logger.warning("Can't send release request. User 0x%x has no AMF UE Id.", ctxt.rnti);
return false;
}
if (was_ue_context_release_requested()) { if (was_ue_context_release_requested()) {
// let timeout auto-remove user. // let timeout auto-remove user.
return false; return false;

Loading…
Cancel
Save