Skip to content

Commit

Permalink
Set the interface pointer in all v6 fragments.
Browse files Browse the repository at this point in the history
Fix a crash in ip6_forward() caused by a NULL m->m_pkthdr.rcvif.

Issue:		#5428
  • Loading branch information
loos-br committed Nov 18, 2015
1 parent 92cd9c3 commit 4204c9f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sys/netpfil/pf/pf_norm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1151,6 +1151,7 @@ pf_refragment6(struct ifnet *ifp, struct mbuf **m0, struct m_tag *mtag)
for (t = m; m; m = t) {
t = m->m_nextpkt;
m->m_nextpkt = NULL;
m->m_pkthdr.rcvif = ifp;
m->m_flags |= M_SKIP_FIREWALL;
memset(&pd, 0, sizeof(pd));
pd.pf_mtag = pf_find_mtag(m);
Expand Down

0 comments on commit 4204c9f

Please sign in to comment.