git: 5f42f87fc434 - main - inpcb: in_pcbinshash() can't fail on connect(2)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 13 Mar 2025 16:54:12 UTC
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);