Skip to content

Commit

Permalink
Add Error handling for unknown sessions on delete
Browse files Browse the repository at this point in the history
  • Loading branch information
jkilpatr committed Jan 15, 2025
1 parent 8640f9c commit 3218a65
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/mme/mme-s11-handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -597,9 +597,14 @@ void mme_s11_handle_delete_session_response(
sess = xact->data;
ogs_assert(sess);
mme_ue = sess->mme_ue;
ogs_assert(mme_ue);
if (!mme_ue_from_teid) {
ogs_error("No Context in TEID");
}
target_ue = sgw_ue_cycle(mme_ue->sgw_ue);
ogs_assert(target_ue);
if (!target_ue) {
ogs_error("Cannot find target_ue context");
return;
}

if (action == OGS_GTP_DELETE_IN_PATH_SWITCH_REQUEST) {
source_ue = sgw_ue_cycle(target_ue->source_ue);
Expand Down

0 comments on commit 3218a65

Please sign in to comment.