From 328836c626572cbb92db3e480fbfe6f839592623 Mon Sep 17 00:00:00 2001 From: alc Date: Sat, 2 Nov 2002 05:14:31 +0000 Subject: Revert the change in revision 1.77 of kern/uipc_socket2.c. It is causing a panic because the socket's state isn't as expected by sofree(). Discussed with: dillon, fenner --- sys/kern/uipc_sockbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern/uipc_sockbuf.c') diff --git a/sys/kern/uipc_sockbuf.c b/sys/kern/uipc_sockbuf.c index 239c408..9872c22 100644 --- a/sys/kern/uipc_sockbuf.c +++ b/sys/kern/uipc_sockbuf.c @@ -205,7 +205,7 @@ sonewconn(head, connstatus) #endif if (soreserve(so, head->so_snd.sb_hiwat, head->so_rcv.sb_hiwat) || (*so->so_proto->pr_usrreqs->pru_attach)(so, 0, NULL)) { - sotryfree(so); + sodealloc(so); return ((struct socket *)0); } -- cgit v1.1