summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/uipc_mbuf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c
index 96a027c..f94817c 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;
OpenPOWER on IntegriCloud