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:
parent
203bd0c3e7
commit
335b8d7e89
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user