Skip to content
Snippets Groups Projects
Commit d080acfb authored by Gijs Peskens's avatar Gijs Peskens Committed by Gijs Peskens
Browse files

Fix incorrect flow getting deleted

parent f7ace4d5
No related branches found
No related tags found
1 merge request!147Fix incorrect flow getting deleted
Pipeline #88693 passed with stages
in 2 minutes and 45 seconds
......@@ -157,7 +157,7 @@ void rist_delete_flow(struct rist_receiver *ctx, struct rist_flow *f)
struct rist_flow *current_flow = *prev_flow;
while (current_flow)
{
if (current_flow->flow_id == f->flow_id) {
if (current_flow == f) {
*prev_flow = current_flow->next;
free(current_flow);
current_flow = NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment