Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154215971
D17006.id47628.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
800 B
Referenced Files
None
Subscribers
None
D17006.id47628.diff
View Options
Index: head/sys/netinet6/in6_pcb.c
===================================================================
--- head/sys/netinet6/in6_pcb.c
+++ head/sys/netinet6/in6_pcb.c
@@ -849,10 +849,7 @@
in6_losing(struct inpcb *in6p)
{
- if (in6p->inp_route6.ro_rt) {
- RTFREE(in6p->inp_route6.ro_rt);
- in6p->inp_route6.ro_rt = (struct rtentry *)NULL;
- }
+ RO_RTFREE(&in6p->inp_route6);
if (in6p->inp_route6.ro_lle)
LLE_FREE(in6p->inp_route6.ro_lle); /* zeros ro_lle */
return;
@@ -866,10 +863,7 @@
in6_rtchange(struct inpcb *inp, int errno)
{
- if (inp->inp_route6.ro_rt) {
- RTFREE(inp->inp_route6.ro_rt);
- inp->inp_route6.ro_rt = (struct rtentry *)NULL;
- }
+ RO_RTFREE(&in6p->inp_route6);
if (inp->inp_route6.ro_lle)
LLE_FREE(inp->inp_route6.ro_lle); /* zeros ro_lle */
return inp;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 28, 4:43 AM (2 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32251284
Default Alt Text
D17006.id47628.diff (800 B)
Attached To
Mode
D17006: Apply RO_RTFREE() to more places
Attached
Detach File
Event Timeline
Log In to Comment