File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -467,14 +467,14 @@ Ip6GetPrefix (
467467 UINT8 Mask ;
468468 UINT8 Value ;
469469
470- ASSERT ((Prefix != NULL ) && (PrefixLength < IP6_PREFIX_MAX ));
470+ ASSERT ((Prefix != NULL ) && (PrefixLength <= IP6_PREFIX_MAX ));
471471
472472 if (PrefixLength == 0 ) {
473473 ZeroMem (Prefix , sizeof (EFI_IPv6_ADDRESS ));
474474 return ;
475475 }
476476
477- if (PrefixLength >= IP6_PREFIX_MAX ) {
477+ if (PrefixLength > IP6_PREFIX_MAX ) {
478478 return ;
479479 }
480480
Original file line number Diff line number Diff line change @@ -844,7 +844,7 @@ NetIp6IsNetEqual (
844844 UINT8 Bit ;
845845 UINT8 Mask ;
846846
847- ASSERT ((Ip1 != NULL ) && (Ip2 != NULL ) && (PrefixLength < IP6_PREFIX_MAX ));
847+ ASSERT ((Ip1 != NULL ) && (Ip2 != NULL ) && (PrefixLength <= IP6_PREFIX_MAX ));
848848
849849 if (PrefixLength == 0 ) {
850850 return TRUE;
You can’t perform that action at this time.
0 commit comments