[Bug 210943] Page fault in ip6_setpktopts when syncthing is started with pflog loaded

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jul 11 11:21:40 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210943

--- Comment #2 from Andrey V. Elsukov <ae at FreeBSD.org> ---
I prefer this patch, can you test?

--- ip6_output.c        (revision 302315)
+++ ip6_output.c        (working copy)
@@ -2659,8 +2659,8 @@ ip6_setpktopt(int optname, u_char *buf, int len, s
                        if (ifp == NULL)
                                return (ENXIO);
                }
-               if (ifp != NULL && (
-                   ND_IFINFO(ifp)->flags & ND6_IFF_IFDISABLED))
+               if (ifp != NULL && (ifp->if_afdata[AF_INET6] == NULL ||
+                   (ND_IFINFO(ifp)->flags & ND6_IFF_IFDISABLED) != 0))
                        return (ENETDOWN);

                if (ifp != NULL &&

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list