X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FNetwork%2FIp4Dxe%2FIp4Input.c;h=0f4948d46ada867b5acb74d80fbd23c4bd2294f4;hp=9aa426fb2e6664994305048a8025606984bc4e9d;hb=b2c0a17556ce881deb595e1765c106bd6b0f9761;hpb=7b2207f058ea04261a33bd73e54c8b3e6f4715b6 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; }