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:
Christian S.J. Peron 2008-08-27 23:52:03 +00:00
parent 8d372294f9
commit f440aeea83
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=182311

View File

@ -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);