Skip to content

Commit

Permalink
Handle null eNB context (#5084)
Browse files Browse the repository at this point in the history
Signed-off-by: Ulas Kozat <kozat@fb.com>
  • Loading branch information
ulaskozat committed Feb 23, 2021
1 parent 8d95888 commit 7529b20
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,12 @@ int s1ap_mme_handle_uplink_nas_transport(
mme_ue_s1ap_id = (mme_ue_s1ap_id_t) ie->value.choice.MME_UE_S1AP_ID;

enb_ref = s1ap_state_get_enb(state, assoc_id);
if (enb_ref == NULL) {
OAILOG_ERROR(
LOG_S1AP, "No eNB reference exists for association id %d\n", assoc_id);
return RETURNerror;
}

if (mme_ue_s1ap_id == INVALID_MME_UE_S1AP_ID) {
OAILOG_WARNING(
LOG_S1AP,
Expand Down

0 comments on commit 7529b20

Please sign in to comment.