Permalink
Browse files

adjust m_len after copying content. Karim Fodil-Lemelin

  • Loading branch information...
1 parent 3739db4 commit 673343806ed9fc85f28cd58e22d5f8f3b3634eff itojun committed May 7, 2004
Showing with 1 addition and 0 deletions.
  1. +1 −0 freebsd5/sys/kern/uipc_mbuf2.c
@@ -306,6 +306,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;
}

0 comments on commit 6733438

Please sign in to comment.