diff options
| author | Gleb Smirnoff <glebius@FreeBSD.org> | 2026-04-12 18:34:05 +0000 |
|---|---|---|
| committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2026-04-12 18:34:05 +0000 |
| commit | 1d0ea3dfb9cbc26e77491bacef1cbc5d72e0375d (patch) | |
| tree | f3d9bbf041f81fad66af38b0488d6ed2585d8ac3 | |
| parent | acb79b56b1eb9ccd3efb519b6527116714ebf876 (diff) | |
raw ip: remove extra argument to rip_dodisconnect()
No functional change.
| -rw-r--r-- | sys/netinet/raw_ip.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/netinet/raw_ip.c b/sys/netinet/raw_ip.c index f2fec876d077..5114a69d7bf2 100644 --- a/sys/netinet/raw_ip.c +++ b/sys/netinet/raw_ip.c @@ -871,7 +871,7 @@ rip_detach(struct socket *so) } static void -rip_dodisconnect(struct socket *so, struct inpcb *inp) +rip_dodisconnect(struct inpcb *inp) { struct inpcbinfo *pcbinfo; @@ -882,9 +882,9 @@ rip_dodisconnect(struct socket *so, struct inpcb *inp) inp->inp_faddr.s_addr = INADDR_ANY; rip_inshash(inp); INP_HASH_WUNLOCK(pcbinfo); - SOCK_LOCK(so); - so->so_state &= ~SS_ISCONNECTED; - SOCK_UNLOCK(so); + SOCK_LOCK(inp->inp_socket); + inp->inp_socket->so_state &= ~SS_ISCONNECTED; + SOCK_UNLOCK(inp->inp_socket); INP_WUNLOCK(inp); } @@ -896,7 +896,7 @@ rip_abort(struct socket *so) inp = sotoinpcb(so); KASSERT(inp != NULL, ("rip_abort: inp == NULL")); - rip_dodisconnect(so, inp); + rip_dodisconnect(inp); } static void @@ -907,7 +907,7 @@ rip_close(struct socket *so) inp = sotoinpcb(so); KASSERT(inp != NULL, ("rip_close: inp == NULL")); - rip_dodisconnect(so, inp); + rip_dodisconnect(inp); } static int @@ -921,7 +921,7 @@ rip_disconnect(struct socket *so) inp = sotoinpcb(so); KASSERT(inp != NULL, ("rip_disconnect: inp == NULL")); - rip_dodisconnect(so, inp); + rip_dodisconnect(inp); return (0); } |
