From 3f89900bf1a40ce033e7b1b3f9ba5830669a2360 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Wed, 7 Dec 2022 12:27:15 -0800 Subject: [PATCH] udp6: fix build with INET6 and without INVARIANTS Reported by: Michael Butler Fixes: 483fe96511ec02a3f077f9a59f1a96acb3640dea --- sys/netinet6/udp6_usrreq.c | 3 --- 1 file changed, 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); }