Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162985870
D17898.id50180.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
675 B
Referenced Files
None
Subscribers
None
D17898.id50180.diff
View Options
Index: sys/netinet6/in6_ifattach.c
===================================================================
--- sys/netinet6/in6_ifattach.c
+++ sys/netinet6/in6_ifattach.c
@@ -481,9 +481,16 @@
return (-1);
}
- ia = in6ifa_ifpforlinklocal(ifp, 0); /* ia must not be NULL */
- KASSERT(ia != NULL, ("%s: ia == NULL, ifp=%p", __func__, ifp));
-
+ ia = in6ifa_ifpforlinklocal(ifp, 0);
+ if (ia == NULL) {
+ /*
+ * Another thread removed the address that we just added.
+ * This should be rare, but it happens.
+ */
+ nd6log((LOG_NOTICE, "%s: %s: new link-local address "
+ "disappeared\n", __func__, if_name(ifp)));
+ return (-1);
+ }
ifa_free(&ia->ia_ifa);
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jul 19, 10:40 PM (8 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35253827
Default Alt Text
D17898.id50180.diff (675 B)
Attached To
Mode
D17898: in6_ifattach_linklocal: handle immediate removal of the new LLA
Attached
Detach File
Event Timeline
Log In to Comment