Fix a panic in MAC kernels that was a result of un-initialized label
storage. We can safely remove the label copying operations since M_MOVE_PKTHDR will move the mbuf tags (which contain MAC labels) to the destination mbuf. MFC after: 1 week Discussed with: rwatson
This commit is contained in:
parent
8d372294f9
commit
f440aeea83
@ -509,9 +509,6 @@ ip_insertoptions(struct mbuf *m, struct mbuf *opt, int *phlen)
|
||||
}
|
||||
M_MOVE_PKTHDR(n, m);
|
||||
n->m_pkthdr.rcvif = NULL;
|
||||
#ifdef MAC
|
||||
mac_mbuf_copy(m, n);
|
||||
#endif
|
||||
n->m_pkthdr.len += optlen;
|
||||
m->m_len -= sizeof(struct ip);
|
||||
m->m_data += sizeof(struct ip);
|
||||
|
Loading…
x
Reference in New Issue
Block a user