diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet6/icmp6.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c index 086f2b8da03..3b0632123a2 100644 --- a/sys/netinet6/icmp6.c +++ b/sys/netinet6/icmp6.c @@ -1,5 +1,5 @@ -/* $OpenBSD: icmp6.c,v 1.26 2000/12/11 08:04:56 itojun Exp $ */ -/* $KAME: icmp6.c,v 1.156 2000/10/19 19:21:07 itojun Exp $ */ +/* $OpenBSD: icmp6.c,v 1.27 2000/12/11 19:29:50 itojun Exp $ */ +/* $KAME: icmp6.c,v 1.172 2000/12/11 19:27:06 itojun Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -1074,12 +1074,7 @@ icmp6_mtudisc_update(ip6cp, validated) htons(m->m_pkthdr.rcvif->if_index); } /* sin6.sin6_scope_id = XXX: should be set if DST is a scoped addr */ - rt = rtalloc1((struct sockaddr *)&sin6, 1); /*clone*/ - if (!rt || (rt->rt_flags & RTF_HOST) == 0) { - if (rt) - RTFREE(rt); - rt = icmp6_mtudisc_clone((struct sockaddr *)&sin6); - } + rt = icmp6_mtudisc_clone((struct sockaddr *)&sin6); if (rt && (rt->rt_flags & RTF_HOST) && !(rt->rt_rmx.rmx_locks & RTV_MTU)) { |