diff options
-rw-r--r-- | sys/kern/uipc_mbuf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c index 96a027c6dd75..f94817c6f1e8 100644 --- a/sys/kern/uipc_mbuf.c +++ b/sys/kern/uipc_mbuf.c @@ -849,7 +849,8 @@ m_dup(struct mbuf *m, int how) m_free(n); goto nospace; } - nsize = MHLEN; + if ((n->m_flags & M_EXT) == 0) + nsize = MHLEN; } n->m_len = 0; |