summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/uipc_sockbuf.c2
-rw-r--r--sys/kern/uipc_socket.c2
-rw-r--r--sys/kern/uipc_socket2.c2
-rw-r--r--sys/sys/socketvar.h1
4 files changed, 4 insertions, 3 deletions
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);
}
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c
index 7a6c2b5..379b7e1 100644
--- a/sys/kern/uipc_socket.c
+++ b/sys/kern/uipc_socket.c
@@ -231,7 +231,7 @@ sobind(so, nam, td)
return (error);
}
-static void
+void
sodealloc(struct socket *so)
{
diff --git a/sys/kern/uipc_socket2.c b/sys/kern/uipc_socket2.c
index 239c408..9872c22 100644
--- a/sys/kern/uipc_socket2.c
+++ b/sys/kern/uipc_socket2.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);
}
diff --git a/sys/sys/socketvar.h b/sys/sys/socketvar.h
index 4c94157..a7e3e7b 100644
--- a/sys/sys/socketvar.h
+++ b/sys/sys/socketvar.h
@@ -405,6 +405,7 @@ int soconnect2(struct socket *so1, struct socket *so2);
int socow_setup(struct mbuf *m0, struct uio *uio);
int socreate(int dom, struct socket **aso, int type, int proto,
struct ucred *cred, struct thread *td);
+void sodealloc(struct socket *so);
int sodisconnect(struct socket *so);
void sofree(struct socket *so);
int sogetopt(struct socket *so, struct sockopt *sopt);
OpenPOWER on IntegriCloud