Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Mar 2025 16:54:12 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: 5f42f87fc434 - main - inpcb: in_pcbinshash() can't fail on connect(2)
Message-ID:  <202503131654.52DGsC4s043713@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=5f42f87fc4341405c03e3a83e4b79b3068e95554

commit 5f42f87fc4341405c03e3a83e4b79b3068e95554
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2025-03-13 16:53:40 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2025-03-13 16:53:40 +0000

    inpcb: in_pcbinshash() can't fail on connect(2)
    
    CID:                    1593687
---
 sys/netinet6/in6_pcb.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys/netinet6/in6_pcb.c b/sys/netinet6/in6_pcb.c
index e77a1e9d3e87..65b7ead1e365 100644
--- a/sys/netinet6/in6_pcb.c
+++ b/sys/netinet6/in6_pcb.c
@@ -523,7 +523,8 @@ in6_pcbconnect(struct inpcb *inp, struct sockaddr_in6 *sin6, struct ucred *cred,
 	if ((inp->inp_flags & INP_INHASHLIST) != 0) {
 		in_pcbrehash(inp);
 	} else {
-		in_pcbinshash(inp);
+		error = in_pcbinshash(inp);
+		MPASS(error == 0);
 	}
 
 	return (0);



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