git: cc2643ea3cf0 - stable/13 - routing: fix panic for p2p interfaces after 800c68469ba6.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 13 Jan 2023 21:25:14 UTC
The branch stable/13 has been updated by melifaro:
URL: https://cgit.FreeBSD.org/src/commit/?id=cc2643ea3cf08931836c0359b2e391a14caf3cd4
commit cc2643ea3cf08931836c0359b2e391a14caf3cd4
Author: Alexander V. Chernikov <melifaro@FreeBSD.org>
AuthorDate: 2022-08-03 08:21:08 +0000
Commit: Alexander V. Chernikov <melifaro@FreeBSD.org>
CommitDate: 2023-01-13 21:22:57 +0000
routing: fix panic for p2p interfaces after 800c68469ba6.
Reported by: cy
MFC after: 1 month
(cherry picked from commit 08bb0873ca88be777e1fc8dd9d374e4da938be65)
---
sys/netinet6/in6.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c
index b0a8c1608b6c..555b75267c66 100644
--- a/sys/netinet6/in6.c
+++ b/sys/netinet6/in6.c
@@ -1279,6 +1279,7 @@ in6_handle_dstaddr_rtrequest(int cmd, struct in6_ifaddr *ia)
struct rt_addrinfo info = {
.rti_ifa = ifa,
+ .rti_ifp = ifa->ifa_ifp,
.rti_flags = RTF_PINNED | RTF_HOST,
.rti_info = {
[RTAX_DST] = (struct sockaddr *)&dst,