diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2022-12-07 20:27:15 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2022-12-07 20:27:15 +0000 |
commit | 3f89900bf1a40ce033e7b1b3f9ba5830669a2360 (patch) | |
tree | bc18058ab2d23d737c2aef3baf1c0f338d917797 | |
parent | 78ec1136175978785ffe3e0879fed646ae02838b (diff) | |
download | src-3f89900bf1a40ce033e7b1b3f9ba5830669a2360.tar.gz src-3f89900bf1a40ce033e7b1b3f9ba5830669a2360.zip |
udp6: fix build with INET6 and without INVARIANTS
Reported by: Michael Butler <imb protected-networks.net>
Fixes: 483fe96511ec02a3f077f9a59f1a96acb3640dea
-rw-r--r-- | sys/netinet6/udp6_usrreq.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/netinet6/udp6_usrreq.c b/sys/netinet6/udp6_usrreq.c index 484f43d24808..df5e56076218 100644 --- a/sys/netinet6/udp6_usrreq.c +++ b/sys/netinet6/udp6_usrreq.c @@ -1202,14 +1202,11 @@ static void udp6_detach(struct socket *so) { struct inpcb *inp; - struct udpcb *up; inp = sotoinpcb(so); KASSERT(inp != NULL, ("udp6_detach: inp == NULL")); INP_WLOCK(inp); - up = intoudpcb(inp); - KASSERT(up != NULL, ("%s: up == NULL", __func__)); in_pcbdetach(inp); in_pcbfree(inp); } |