The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=08cf9598bd9058782dcbc7a2c6de12779847d651
commit 08cf9598bd9058782dcbc7a2c6de12779847d651 Author: Gleb Smirnoff <[email protected]> AuthorDate: 2026-09-07 18:51:22 +0000 Commit: Gleb Smirnoff <[email protected]> CommitDate: 2026-09-07 18:51:22 +0000 inpcb: use new local address in in_pcbconnect() when collecting necessary locks for the operation. The IPv6 version is already correct. Submitted by: Nick Price <nick spun.io> Fixes: 1dda8ba77a20d983774a3bf0e94c51c93f1d8758 --- sys/netinet/in_pcb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c index 190f19f9a3b6..c60042908b4c 100644 --- a/sys/netinet/in_pcb.c +++ b/sys/netinet/in_pcb.c @@ -1227,7 +1227,7 @@ in_pcbconnect(struct inpcb *inp, struct sockaddr_in *sin, struct ucred *cred) struct inpcblbgroup *g __diagused; i = in_pcblookup_wild_locked(ipictx.pcbinfo, - inp->inp_laddr, inp->inp_lport, RT_ALL_FIBS, + laddr, inp->inp_lport, RT_ALL_FIBS, &ipictx.wbucket); MPASS(i); if (inp->inp_flags & INP_INLBGROUP) {
