Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
demo-exe committed Jan 9, 2024
1 parent 3ad0c32 commit fc82934
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions upf/upf_pfcp_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,11 @@ request_t1_expired (u32 seq_no)
ASSERT (req->flags.is_stopped == 0);
req->timer = ~0;

// handle edge case: timer expired in this iteration
// TODO: this should not be needed after multithreading
if (!req->data)
return;

upf_debug ("Msg Seq No: %u, %p, n1 %u\n", req->seq_no, req, req->n1);

/* make sure to resent reports to new peer if smfset peer is changed */
Expand All @@ -537,9 +542,6 @@ request_t1_expired (u32 seq_no)
return;
}

if (!req->data)
return;

u8 type = pfcp_msg_type (req->data);

if (--req->n1 != 0)
Expand Down

0 comments on commit fc82934

Please sign in to comment.