Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177627466
D3037.1794880800.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
513 B
Referenced Files
None
Subscribers
None
D3037.1794880800.diff
View Options
Index: head/sys/netinet/ip_output.c
===================================================================
--- head/sys/netinet/ip_output.c
+++ head/sys/netinet/ip_output.c
@@ -681,6 +681,13 @@
done:
if (ro == &iproute)
RO_RTFREE(ro);
+ else if (rte == NULL)
+ /*
+ * If the caller supplied a route but somehow the reference
+ * to it has been released need to prevent the caller
+ * calling RTFREE on it again.
+ */
+ ro->ro_rt = NULL;
if (have_ia_ref)
ifa_free(&ia->ia_ifa);
return (error);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 17, 2:00 AM (9 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41791179
Default Alt Text
D3037.1794880800.diff (513 B)
Attached To
Mode
D3037: Avoid double reference decrement when firewalls force relooping of packets
Attached
Detach File
Event Timeline