set m_len to reflect mbuf contents on return from m_dup1; fixes an obscure

m_pullup case that contributed to breaking ipcomp in tunnel mode for kame

Submitted by:	itojun
Obtained from:	kame
This commit is contained in:
Sam Leffler 2004-05-09 05:57:58 +00:00
parent 203bd0c3e7
commit 335b8d7e89

View File

@ -303,6 +303,7 @@ m_dup1(struct mbuf *m, int off, int len, int wait)
return NULL;
}
m_copydata(m, off, len, mtod(n, caddr_t));
n->m_len = len;
return n;
}