In the 'dontblock' section of soreceive(), assert that the mbuf on hand

('m') is in fact the first mbuf in the receive socket buffer.
This commit is contained in:
Robert Watson 2004-07-11 01:44:12 +00:00
parent e2ee21738f
commit 0014b343e0

View File

@ -1010,6 +1010,7 @@ dontblock:
SOCKBUF_LOCK_ASSERT(&so->so_rcv);
if (uio->uio_td)
uio->uio_td->td_proc->p_stats->p_ru.ru_msgrcv++;
KASSERT(m == so->so_rcv.sb_mb, ("soreceive: m != so->so_rcv.sb_mb"));
SBLASTRECORDCHK(&so->so_rcv);
SBLASTMBUFCHK(&so->so_rcv);
nextrecord = m->m_nextpkt;