From f361efa0be132c05d1ffb52c9fc4a968ac82d159 Mon Sep 17 00:00:00 2001 From: SUZUKI Shinsuke Date: Thu, 11 Apr 2002 02:14:21 +0000 Subject: [PATCH] initialize local variable explicitly Reviewed by: ume Obtained from: Fujitsu guys MFC after: 1 week --- sys/netinet/ip_ecn.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/netinet/ip_ecn.c b/sys/netinet/ip_ecn.c index 3abc3b683212..de3d38e9e25b 100644 --- a/sys/netinet/ip_ecn.c +++ b/sys/netinet/ip_ecn.c @@ -115,6 +115,7 @@ ip6_ecn_ingress(mode, outer, inner) if (!outer || !inner) panic("NULL pointer passed to ip6_ecn_ingress"); + outer8 = (ntohl(*outer) >> 20) & 0xff; inner8 = (ntohl(*inner) >> 20) & 0xff; ip_ecn_ingress(mode, &outer8, &inner8); *outer &= ~htonl(0xff << 20); @@ -133,6 +134,7 @@ ip6_ecn_egress(mode, outer, inner) panic("NULL pointer passed to ip6_ecn_egress"); outer8 = (ntohl(*outer) >> 20) & 0xff; + inner8 = (ntohl(*inner) >> 20) & 0xff; ip_ecn_egress(mode, &outer8, &inner8); *inner &= ~htonl(0xff << 20); *inner |= htonl((u_int32_t)inner8 << 20);