Skip to content

Commit

Permalink
When we are about to send down to the driver layer
Browse files Browse the repository at this point in the history
we need to make sure that the m_nextpkt field is NULL
else the lower layers may do unwanted things.

Approved by:	re(gjb)
Reviewed By:  gallatin, melifaro
Differential Revision: https://reviews.freebsd.org/D28377

(cherry picked from commit 538a815)
  • Loading branch information
Randall Stewart authored and AlexanderChernikov committed Feb 15, 2021
1 parent 15e6457 commit b3cfe07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sys/netinet6/nd6.c
Original file line number Diff line number Diff line change
Expand Up @@ -2460,6 +2460,7 @@ nd6_flush_holdchain(struct ifnet *ifp, struct mbuf *chain,
while (m_head) {
m = m_head;
m_head = m_head->m_nextpkt;
m->m_nextpkt = NULL;
error = nd6_output_ifp(ifp, ifp, m, dst, NULL);
}

Expand Down

0 comments on commit b3cfe07

Please sign in to comment.