diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index 4ff301a9540f..0384b966b513 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -1766,7 +1766,7 @@ soreceive_generic(struct socket *so, struct sockaddr **psa, struct uio *uio, * requires MT_SONAME mbufs at the head of * each record. */ - if (m && pr->pr_flags & PR_ATOMIC && + if (pr->pr_flags & PR_ATOMIC && ((flags & MSG_PEEK) == 0)) (void)sbdroprecord_locked(&so->so_rcv); SOCKBUF_UNLOCK(&so->so_rcv);