Skip to content

Commit

Permalink
fix packet leak in tcp resassembly
Browse files Browse the repository at this point in the history
  • Loading branch information
cjsworld committed Nov 25, 2022
1 parent 957df94 commit 11ad713
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ofp_tcp_reass.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ ofp_tcp_reass_flush(struct tcpcb *tp)

while ((qe = OFP_LIST_FIRST(&tp->t_segq)) != NULL) {
OFP_LIST_REMOVE(qe, tqe_q);

odp_packet_free(qe->tqe_m); // This code is necessary to free the odp packets which are held by the tcp segments as part of re-assembly list.**

uma_zfree(V_tcp_reass_zone, qe);
tp->t_segqlen--;
}
Expand Down

0 comments on commit 11ad713

Please sign in to comment.