diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index 17b456deb71..fe2d8d05606 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -2989,8 +2989,8 @@ soreceive_generic_locked(struct socket *so, struct sockaddr **psa, */ moff = 0; offset = 0; - while (m != NULL && !(m->m_flags & M_NOTAVAIL) && uio->uio_resid > 0 - && error == 0) { + while (m != NULL && !(m->m_flags & M_NOTREADY) && uio->uio_resid > 0 && + error == 0) { /* * If the type of mbuf has changed since the last mbuf * examined ('type'), end the receive operation.