diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index ae2442e93bdd..1d37b23bae34 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -1001,6 +1001,8 @@ soreceive(so, psa, uio, mp0, controlp, flagsp) sbfree(&so->so_rcv, m); so->so_rcv.sb_mb = m_free(m); m = so->so_rcv.sb_mb; + if (m != NULL) + m->m_nextpkt = nextrecord; } } while (m != NULL && m->m_type == MT_CONTROL && error == 0) {