Skip to content

Commit 72bff83

Browse files
committed
check if MME-UE-S1AP-ID has been yet assigned before sending UL NAS Transport. If it hasn't log error and abort s1 tx.
1 parent cdd3932 commit 72bff83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

srsenb/src/stack/upper/s1ap.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1385,7 +1385,8 @@ bool s1ap::ue::send_initialuemessage(asn1::s1ap::rrc_establishment_cause_e cause
13851385

13861386
bool s1ap::ue::send_ulnastransport(srsran::unique_byte_buffer_t pdu)
13871387
{
1388-
if (not s1ap_ptr->mme_connected) {
1388+
if (not ctxt.mme_ue_s1ap_id.has_value()) {
1389+
logger.error("Trying to send UL NAS Transport message for rnti=0x%x without MME-S1AP-UE-ID", ctxt.rnti);
13891390
return false;
13901391
}
13911392

0 commit comments

Comments
 (0)