Page MenuHomeFreeBSD

D3037.id7482.diff
No OneTemporary

D3037.id7482.diff

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

Mime Type
text/plain
Expires
Sat, Oct 3, 12:15 PM (18 m, 30 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40127526
Default Alt Text
D3037.id7482.diff (513 B)

Event Timeline