FreeBSD Bugzilla – Attachment 226609 Details for
Bug 257302
net/syncthing: Panic in in6_getmulti at /usr/src/sys/netinet6/in6_mcast.c:451
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch (untested)
ipfw_mcast.diff (text/plain), 648 bytes, created by
Andrey V. Elsukov
on 2021-07-22 12:40:19 UTC
(
hide
)
Description:
proposed patch (untested)
Filename:
MIME Type:
Creator:
Andrey V. Elsukov
Created:
2021-07-22 12:40:19 UTC
Size:
648 bytes
patch
obsolete
>diff --git a/sys/netinet6/in6_mcast.c b/sys/netinet6/in6_mcast.c >index bd202e76c6b6..472a3434ebad 100644 >--- a/sys/netinet6/in6_mcast.c >+++ b/sys/netinet6/in6_mcast.c >@@ -372,9 +372,16 @@ in6_getmulti(struct ifnet *ifp, const struct in6_addr *group, > IN6_MULTI_LIST_LOCK(); > IF_ADDR_WLOCK(ifp); > NET_EPOCH_ENTER_ET(et); >- inm = in6m_lookup_locked(ifp, group); >+ /* Does ifp support IPv6? */ >+ if (ifp->if_afdata[AF_INET6] == NULL) >+ error = ENODEV; >+ else >+ inm = in6m_lookup_locked(ifp, group); > NET_EPOCH_EXIT_ET(et); > >+ if (error != 0) >+ goto out_locked; >+ > if (inm != NULL) { > /* > * If we already joined this group, just bump the
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 257302
: 226609