fixed an IPv6 path MTU discovery failure owing to a lack of initialization

Reviewed by: ume
Approved by: re (scottl)
MFC after: 1 day
This commit is contained in:
SUZUKI Shinsuke 2003-12-17 04:31:07 +00:00
parent dabcf42ff1
commit 03a1bc3e93
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=123587

View File

@ -200,6 +200,7 @@ ip6_output(m0, opt, ro, flags, im6o, ifpp, inp)
#endif /* IPSEC */
ip6 = mtod(m, struct ip6_hdr *);
finaldst = ip6->ip6_dst;
#define MAKE_EXTHDR(hp, mp) \
do { \
@ -496,7 +497,6 @@ skip_ipsec2:;
struct ip6_rthdr0 *rh0;
struct in6_addr *addrs;
finaldst = ip6->ip6_dst;
switch (rh->ip6r_type) {
case IPV6_RTHDR_TYPE_0:
rh0 = (struct ip6_rthdr0 *)rh;