Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Bruce Cran <br...@cran.org.uk>
---
 NetworkPkg/IpSecDxe/IpSecImpl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/NetworkPkg/IpSecDxe/IpSecImpl.c b/NetworkPkg/IpSecDxe/IpSecImpl.c
index 347bdd9..0c9af79 100644
--- a/NetworkPkg/IpSecDxe/IpSecImpl.c
+++ b/NetworkPkg/IpSecDxe/IpSecImpl.c
@@ -1620,7 +1620,7 @@ IpSecEspInboundPacket (
   //
   // Update the total length field in ip header since processed by esp.
   //
-  if (!SadData->Mode == EfiIPsecTunnel) {
+  if (!(SadData->Mode == EfiIPsecTunnel)) {
     if (IpVersion == IP_VERSION_4) {
       ((IP4_HEAD *) IpHead)->TotalLen = HTONS ((UINT16) ((((IP4_HEAD *) 
IpHead)->HeadLen << 2) + PlainPayloadSize));
     } else {
-- 
2.4.5


------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to