diff options
author | shin <shin@FreeBSD.org> | 2000-01-16 18:00:06 +0000 |
---|---|---|
committer | shin <shin@FreeBSD.org> | 2000-01-16 18:00:06 +0000 |
commit | 4338629a916cc92e6fe6710cca485f9eaa64e724 (patch) | |
tree | a3fd48eaf93f42f3e20f7f29d153dc2444887114 /sys/netinet6 | |
parent | c0ef5c03d23b6e95d4538c2fe66d8fe609598e98 (diff) | |
download | FreeBSD-src-4338629a916cc92e6fe6710cca485f9eaa64e724.zip FreeBSD-src-4338629a916cc92e6fe6710cca485f9eaa64e724.tar.gz |
fix kernel panic at rtfree() in INET6 enabled envrionment.
This is probably due to twice rtfree() in in6_pcbdetach(),
one for inp->in6p_route.ro_rt, and another one for inp->inp_route.ro_rt.
But these 2 are actually shared in inpcb, so 2nd rtfree() is not necessary.
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/in6_pcb.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/netinet6/in6_pcb.c b/sys/netinet6/in6_pcb.c index e9f38d6..e8e7c16 100644 --- a/sys/netinet6/in6_pcb.c +++ b/sys/netinet6/in6_pcb.c @@ -744,8 +744,6 @@ in6_pcbdetach(inp) /* Check and free IPv4 related resources in case of mapped addr */ if (inp->inp_options) (void)m_free(inp->inp_options); - if (inp->inp_route.ro_rt) - rtfree(inp->inp_route.ro_rt); ip_freemoptions(inp->inp_moptions); inp->inp_vflag = 0; |