From 8622e776f910513e077d822efc579cdb9ba09316 Mon Sep 17 00:00:00 2001 From: rwatson Date: Sat, 1 Apr 2006 15:15:05 +0000 Subject: Change protocol switch pru_abort() API so that it returns void rather than an int, as an error here is not meaningful. Modify soabort() to unconditionally free the socket on the return of pru_abort(), and modify most protocols to no longer conditionally free the socket, since the caller will do this. This commit likely leaves parts of netinet and netinet6 in a situation where they may panic or leak memory, as they have not are not fully updated by this commit. This will be corrected shortly in followup commits to these components. MFC after: 3 months --- sys/kern/uipc_sockbuf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/kern/uipc_sockbuf.c') diff --git a/sys/kern/uipc_sockbuf.c b/sys/kern/uipc_sockbuf.c index 32f3b8c..be9084b 100644 --- a/sys/kern/uipc_sockbuf.c +++ b/sys/kern/uipc_sockbuf.c @@ -1292,10 +1292,10 @@ sbcreatecontrol(p, size, type, level) * Some routines that return EOPNOTSUPP for entry points that are not * supported by a protocol. Fill in as needed. */ -int +void pru_abort_notsupp(struct socket *so) { - return EOPNOTSUPP; + } int -- cgit v1.1