Skip to content

Commit

Permalink
more error-checks on sgwc_sess_remove()
Browse files Browse the repository at this point in the history
  • Loading branch information
spencersevilla committed Mar 7, 2024
1 parent e52cb3d commit 2abc84c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/sgwc/context.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,11 @@ int sgwc_sess_remove(sgwc_sess_t *sess)
{
sgwc_ue_t *sgwc_ue = NULL;

if (!sess) {
ogs_error("sess is NULL");
return OGS_OK;
}

ogs_assert(sess);
sgwc_ue = sess->sgwc_ue;
ogs_assert(sgwc_ue);
Expand Down

0 comments on commit 2abc84c

Please sign in to comment.