summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_ecn.c
diff options
context:
space:
mode:
authorsuz <suz@FreeBSD.org>2002-04-11 02:14:21 +0000
committersuz <suz@FreeBSD.org>2002-04-11 02:14:21 +0000
commit7a2a62c14d1e2e8805fe2d34ccdf431ebb7bc435 (patch)
tree17d7d42f60350d1b4e5299b9391b53dcad431b8c /sys/netinet/ip_ecn.c
parent098d8eb7a96df25981e2dff099c8bb8f87f7ee22 (diff)
downloadFreeBSD-src-7a2a62c14d1e2e8805fe2d34ccdf431ebb7bc435.zip
FreeBSD-src-7a2a62c14d1e2e8805fe2d34ccdf431ebb7bc435.tar.gz
initialize local variable explicitly
Reviewed by: ume Obtained from: Fujitsu guys MFC after: 1 week
Diffstat (limited to 'sys/netinet/ip_ecn.c')
-rw-r--r--sys/netinet/ip_ecn.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/ip_ecn.c b/sys/netinet/ip_ecn.c
index 3abc3b6..de3d38e 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);
OpenPOWER on IntegriCloud