tcp: Missing mfree in rack and bbr.

See:https://reviews.freebsd.org/D30727.
This commit is contained in:
fengbojiang 2023-01-06 10:35:50 +08:00
parent a816e89636
commit 3c7b637d18
2 changed files with 3 additions and 0 deletions

View File

@ -11475,6 +11475,7 @@ bbr_do_segment_nounlock(struct mbuf *m, struct tcphdr *th, struct socket *so,
if ((tp->t_flags & TF_RCVD_TSTMP) && !(to.to_flags & TOF_TS) &&
((thflags & TH_RST) == 0) && (V_tcp_tolerate_missing_ts == 0)) {
retval = 0;
m_freem(m);
goto done_with_input;
}
/*

View File

@ -10861,6 +10861,7 @@ rack_do_segment_nounlock(struct mbuf *m, struct tcphdr *th, struct socket *so,
if ((thflags & TH_SYN) && (thflags & TH_FIN) && V_drop_synfin) {
way_out = 4;
retval = 0;
m_freem(m);
goto done_with_input;
}
/*
@ -10892,6 +10893,7 @@ rack_do_segment_nounlock(struct mbuf *m, struct tcphdr *th, struct socket *so,
((thflags & TH_RST) == 0) && (V_tcp_tolerate_missing_ts == 0)) {
way_out = 5;
retval = 0;
m_freem(m);
goto done_with_input;
}