diff options
author | mux <mux@FreeBSD.org> | 2004-06-09 14:53:35 +0000 |
---|---|---|
committer | mux <mux@FreeBSD.org> | 2004-06-09 14:53:35 +0000 |
commit | b09a5ac74d4b137b11d5fe1fd141d44ca1101a66 (patch) | |
tree | e442773ed02a39a5375b4ece599227d8324d089a /sys/kern | |
parent | 03b06cd9a3bb0e9d75237994d18bd6d3b6469ac1 (diff) | |
download | FreeBSD-src-b09a5ac74d4b137b11d5fe1fd141d44ca1101a66.zip FreeBSD-src-b09a5ac74d4b137b11d5fe1fd141d44ca1101a66.tar.gz |
Fix a panic happening when m_getm() is called with len < MCLBYTES.
Reported by: ale
Tested by: ale
Reviewed by: bosko
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/uipc_mbuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c index e14aba1..9fb5c4a 100644 --- a/sys/kern/uipc_mbuf.c +++ b/sys/kern/uipc_mbuf.c @@ -123,9 +123,9 @@ m_getm(struct mbuf *m, int len, int how, short type) if (num > 0) { if ((top = cur = m_getcl(how, type, 0)) == NULL) goto failed; + top->m_len = 0; } num--; - top->m_len = 0; for (i = 0; i < num; i++) { mb = m_getcl(how, type, 0); |