Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Dec 2022 20:29:37 GMT
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 3f89900bf1a4 - main - udp6: fix build with INET6 and without INVARIANTS
Message-ID:  <202212072029.2B7KTbwY075036@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by glebius:

URL: https://cgit.FreeBSD.org/src/commit/?id=3f89900bf1a40ce033e7b1b3f9ba5830669a2360

commit 3f89900bf1a40ce033e7b1b3f9ba5830669a2360
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2022-12-07 20:27:15 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2022-12-07 20:27:15 +0000

    udp6: fix build with INET6 and without INVARIANTS
    
    Reported by:    Michael Butler <imb protected-networks.net>
    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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202212072029.2B7KTbwY075036>