Index: tcp_input.c =================================================================== RCS file: /usr/repo/src/sys/netinet/tcp_input.c,v retrieving revision 1.367 diff -u -p -r1.367 tcp_input.c --- tcp_input.c 30 Jul 2007 11:06:41 -0000 1.367 +++ tcp_input.c 30 Aug 2007 17:45:33 -0000 @@ -448,6 +448,8 @@ findpcb: m->m_pkthdr.rcvif); } + if (inp != NULL) + INP_LOCK(inp); #ifdef IPSEC #ifdef INET6 if (isipv6 && inp != NULL && ipsec6_in_reject(m, inp)) { @@ -487,7 +489,6 @@ findpcb: rstreason = BANDLIM_RST_CLOSEDPORT; goto dropwithreset; } - INP_LOCK(inp); /* * Check the minimum TTL for socket.