Skip to content

Commit

Permalink
Handle session not established
Browse files Browse the repository at this point in the history
  • Loading branch information
jkilpatr authored and spencersevilla committed Mar 7, 2024
1 parent b3a1b1c commit e52cb3d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sgwc/pfcp-path.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,10 @@ int sgwc_pfcp_send_session_deletion_request(
ogs_pfcp_header_t h;
ogs_pfcp_xact_t *xact = NULL;

ogs_assert(sess);
if (!sess) {
ogs_error("sess is null!");
return OGS_ERROR;
}

xact = ogs_pfcp_xact_local_create(sess->pfcp_node, sess_timeout, sess);
if (!xact) {
Expand Down

0 comments on commit e52cb3d

Please sign in to comment.