Index: tcp_subr.c =================================================================== RCS file: /home/ncvs/src/sys/netinet/tcp_subr.c,v retrieving revision 1.158 diff -u -p -r1.158 tcp_subr.c --- tcp_subr.c 8 Mar 2003 22:06:20 -0000 1.158 +++ tcp_subr.c 6 Apr 2003 19:43:53 -0000 @@ -929,7 +929,8 @@ tcp_pcblist(SYSCTL_HANDLER_ARGS) if (inp->inp_gencnt <= gencnt && (((inp->inp_vflag & INP_TIMEWAIT) && cr_cansee(req->td->td_ucred, intotw(inp)->tw_cred) == 0) || - cr_canseesocket(req->td->td_ucred, inp->inp_socket) == 0)) + ((!inp->inp_vflag & INP_TIMEWAIT) && + cr_canseesocket(req->td->td_ucred, inp->inp_socket) == 0))) inp_list[i++] = inp; INP_UNLOCK(inp); }