Skip to content

Commit

Permalink
Merge pull request #7 from virtualsquare/fix_doublefree_fragments
Browse files Browse the repository at this point in the history
Fix double free in pico_fragments_reassemble()
  • Loading branch information
rd235 authored May 12, 2021
2 parents f336ead + 7c19574 commit 72ffa74
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions modules/pico_fragments.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,13 +359,9 @@ static int pico_fragments_reassemble(struct pico_tree *tree, unsigned int len, u
pico_tree_delete(tree, f);
pico_frame_discard(f);
}
if (pico_transport_receive(full, proto) == -1)
{
pico_frame_discard(full);
}
pico_transport_receive(full, proto);
return 0;
}

return 1;
}

Expand Down

0 comments on commit 72ffa74

Please sign in to comment.