Fix m_freem_vec() to actually traverse the mbuf chain. This avoids

double free's and an infinite loop.

CID:		1834
Found by:	Coverity Prevent (tm)
This commit is contained in:
jhb 2007-04-11 13:47:24 +00:00
parent 926c0ee8ef
commit 081fdb71d7

View File

@ -135,6 +135,7 @@ m_freem_vec(struct mbuf *m)
mb_free_ext(m);
else
uma_zfree(zone_mbuf, m);
m = n;
}
}