View | Details | Raw Unified | Return to bug 203175
Collapse All | Expand All

(-)b/sys/netinet/tcp_usrreq.c (-3 / +4 lines)
Lines 199-208 tcp_detach(struct socket *so, struct inpcb *inp) Link Here
199
		 *  In all three cases the tcptw should not be freed here.
199
		 *  In all three cases the tcptw should not be freed here.
200
		 */
200
		 */
201
		if (inp->inp_flags & INP_DROPPED) {
201
		if (inp->inp_flags & INP_DROPPED) {
202
			KASSERT(tp == NULL, ("tcp_detach: INP_TIMEWAIT && "
203
			    "INP_DROPPED && tp != NULL"));
204
			in_pcbdetach(inp);
202
			in_pcbdetach(inp);
205
			in_pcbfree(inp);
203
			if (tp == NULL)
204
				in_pcbfree(inp);
205
			else
206
				INP_WUNLOCK(inp);
206
		} else {
207
		} else {
207
			in_pcbdetach(inp);
208
			in_pcbdetach(inp);
208
			INP_WUNLOCK(inp);
209
			INP_WUNLOCK(inp);

Return to bug 203175