Skip to content

Commit 3c7b637

Browse files
committed
tcp: Missing mfree in rack and bbr.
See:https://reviews.freebsd.org/D30727.
1 parent a816e89 commit 3c7b637

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

freebsd/netinet/tcp_stacks/bbr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11475,6 +11475,7 @@ bbr_do_segment_nounlock(struct mbuf *m, struct tcphdr *th, struct socket *so,
1147511475
if ((tp->t_flags & TF_RCVD_TSTMP) && !(to.to_flags & TOF_TS) &&
1147611476
((thflags & TH_RST) == 0) && (V_tcp_tolerate_missing_ts == 0)) {
1147711477
retval = 0;
11478+
m_freem(m);
1147811479
goto done_with_input;
1147911480
}
1148011481
/*

freebsd/netinet/tcp_stacks/rack.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10861,6 +10861,7 @@ rack_do_segment_nounlock(struct mbuf *m, struct tcphdr *th, struct socket *so,
1086110861
if ((thflags & TH_SYN) && (thflags & TH_FIN) && V_drop_synfin) {
1086210862
way_out = 4;
1086310863
retval = 0;
10864+
m_freem(m);
1086410865
goto done_with_input;
1086510866
}
1086610867
/*
@@ -10892,6 +10893,7 @@ rack_do_segment_nounlock(struct mbuf *m, struct tcphdr *th, struct socket *so,
1089210893
((thflags & TH_RST) == 0) && (V_tcp_tolerate_missing_ts == 0)) {
1089310894
way_out = 5;
1089410895
retval = 0;
10896+
m_freem(m);
1089510897
goto done_with_input;
1089610898
}
1089710899

0 commit comments

Comments
 (0)