diff options
Diffstat (limited to 'sys/netinet/ip_divert.c')
-rw-r--r-- | sys/netinet/ip_divert.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet/ip_divert.c b/sys/netinet/ip_divert.c index b3b1a7c..bb31630 100644 --- a/sys/netinet/ip_divert.c +++ b/sys/netinet/ip_divert.c @@ -424,7 +424,7 @@ div_attach(struct socket *so, int proto, struct thread *td) return 0; } -static int +static void div_detach(struct socket *so) { struct inpcb *inp; @@ -433,12 +433,11 @@ div_detach(struct socket *so) inp = sotoinpcb(so); if (inp == 0) { INP_INFO_WUNLOCK(&divcbinfo); - return EINVAL; + return; } INP_LOCK(inp); in_pcbdetach(inp); INP_INFO_WUNLOCK(&divcbinfo); - return 0; } static int |