diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index dc20608d55fd..9b6c42393d42 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -2136,10 +2136,8 @@ soo_kqfilter(struct file *fp, struct knote *kn) case EVFILT_READ: if (so->so_options & SO_ACCEPTCONN) kn->kn_fop = &solisten_filtops; - else if (so->so_state & SS_ISCONNECTED) - kn->kn_fop = &soread_filtops; else - return (EINVAL); + kn->kn_fop = &soread_filtops; sb = &so->so_rcv; break; case EVFILT_WRITE: