diff options
Diffstat (limited to 'NetworkPkg/Ip6Dxe/Ip6Icmp.c')
-rw-r--r-- | NetworkPkg/Ip6Dxe/Ip6Icmp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/NetworkPkg/Ip6Dxe/Ip6Icmp.c b/NetworkPkg/Ip6Dxe/Ip6Icmp.c index f6a9bb406f..1828d51a7d 100644 --- a/NetworkPkg/Ip6Dxe/Ip6Icmp.c +++ b/NetworkPkg/Ip6Dxe/Ip6Icmp.c @@ -1,7 +1,7 @@ /** @file
The ICMPv6 handle routines to process the ICMPv6 control messages.
- Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>
(C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
This program and the accompanying materials
@@ -473,14 +473,14 @@ Ip6GetPrefix ( UINT8 Mask;
UINT8 Value;
- ASSERT ((Prefix != NULL) && (PrefixLength < IP6_PREFIX_NUM));
+ ASSERT ((Prefix != NULL) && (PrefixLength < IP6_PREFIX_MAX));
if (PrefixLength == 0) {
ZeroMem (Prefix, sizeof (EFI_IPv6_ADDRESS));
return ;
}
- if (PrefixLength >= IP6_PREFIX_NUM - 1) {
+ if (PrefixLength >= IP6_PREFIX_MAX) {
return ;
}
|