diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-07-11 01:44:12 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-07-11 01:44:12 +0000 |
commit | 547077c748f1530957c37985d5500fa98ceb5acb (patch) | |
tree | b188c6abdd53a7432a83e7dd9216309e39763a77 /sys | |
parent | 8d6c4e9703e70c85e56a48732e04130d52f15c34 (diff) | |
download | FreeBSD-src-547077c748f1530957c37985d5500fa98ceb5acb.zip FreeBSD-src-547077c748f1530957c37985d5500fa98ceb5acb.tar.gz |
In the 'dontblock' section of soreceive(), assert that the mbuf on hand
('m') is in fact the first mbuf in the receive socket buffer.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/uipc_socket.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index cb6ba3a..35355d3 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -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; |