mirror of https://github.com/PentHertz/srsLTE.git
ngap: fix invalid access of amf ID when context wasn't created yet
This commit is contained in:
parent
bed35c747c
commit
f3ee8b2078
|
@ -251,6 +251,11 @@ bool ngap::ue::send_ue_context_release_request(asn1::ngap::cause_c cause)
|
|||
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()) {
|
||||
// let timeout auto-remove user.
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue