]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/Ip6Dxe/Ip6Impl.c
MdePkg/SmmIoLib: Add header file.
[mirror_edk2.git] / NetworkPkg / Ip6Dxe / Ip6Impl.c
index b186c0af20ed30819fe98094a785c4d28a3bd989..c937423428ead45057f149f226bd80fedf9e7acb 100644 (file)
@@ -2,7 +2,7 @@
   Implementation of EFI_IP6_PROTOCOL protocol interfaces.\r
 \r
   (C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -842,7 +842,7 @@ EfiIp6Routes (
   EFI_TPL                   OldTpl;\r
   IP6_SERVICE               *IpSb;\r
 \r
-  if ((This == NULL) || (PrefixLength >= IP6_PREFIX_NUM)) {\r
+  if ((This == NULL) || (PrefixLength > IP6_PREFIX_MAX)) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r