diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2002-02-05 22:06:44 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2002-02-05 22:06:44 +0000 |
commit | 8434114ac2ed622b10c6c13b82810598c4c8f692 (patch) | |
tree | f42a6ff6ea4746de06898059e04e0dfb2b5686b0 | |
parent | 9b9d2e5a89423d53b637abe309fd2a30fd1b0f88 (diff) |
Zero-ize ext even if it has a free method defined.
-rw-r--r-- | sys/kern/uipc_mbuf.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c index e10eacee3f8..45cb3624086 100644 --- a/sys/kern/uipc_mbuf.c +++ b/sys/kern/uipc_mbuf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_mbuf.c,v 1.53 2002/02/05 21:59:18 angelos Exp $ */ +/* $OpenBSD: uipc_mbuf.c,v 1.54 2002/02/05 22:06:43 angelos Exp $ */ /* $NetBSD: uipc_mbuf.c,v 1.15.4.1 1996/06/13 17:11:44 cgd Exp $ */ /* @@ -905,8 +905,7 @@ m_zero(m) if (M_READONLY(m)) panic("m_zero: M_READONLY"); #endif /* DIAGNOSTIC */ - if ((m->m_flags & M_EXT) && - (m->m_ext.ext_free == NULL)) + if (m->m_flags & M_EXT) memset(m->m_ext.ext_buf, 0, m->m_ext.ext_size); else { if (m->m_flags & M_PKTHDR) |