From b2c0a17556ce881deb595e1765c106bd6b0f9761 Mon Sep 17 00:00:00 2001 From: jgong5 Date: Fri, 6 Feb 2009 06:08:46 +0000 Subject: [PATCH] Pass ECC git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7460 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.c b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.c index 9aa426fb2e..0f4948d46a 100644 --- a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.c +++ b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.c @@ -535,19 +535,19 @@ Ip4AccpetFrame ( // fragment if its head has MF (more fragment) set, or it starts // at non-zero byte. // - if ((Head->Fragment & IP4_HEAD_MF_MASK) || (Info->Start != 0)) { + if (((Head->Fragment & IP4_HEAD_MF_MASK) != 0) || (Info->Start != 0)) { // // Drop the fragment if DF is set but it is fragmented. Gateway // need to send a type 4 destination unreache ICMP message here. // - if (Head->Fragment & IP4_HEAD_DF_MASK) { + if ((Head->Fragment & IP4_HEAD_DF_MASK) != 0) { goto RESTART; } // // The length of all but the last fragments is in the unit of 8 bytes. // - if ((Head->Fragment & IP4_HEAD_MF_MASK) && (Info->Length % 8 != 0)) { + if (((Head->Fragment & IP4_HEAD_MF_MASK) != 0) && (Info->Length % 8 != 0)) { goto RESTART; } -- 2.39.2