From 0231883b57722349b9236dac5a8dd87f00fa40fb Mon Sep 17 00:00:00 2001 From: Bruce Cran Date: Sun, 26 Jul 2015 08:03:05 +0000 Subject: [PATCH] NetworkPkg: Fix bug in IpSecImpl.c caused by missing parentheses Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Bruce Cran Cc: Siyuan Fu Reviewed-by: Fu Siyuan [lersek@redhat.com: updated patch based on Siyuan's feedback] Signed-off-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18045 6f19259b-4bc3-4df7-8a09-765794883524 --- 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 3a8a6e9b58..6df83ec9f8 100644 --- a/NetworkPkg/IpSecDxe/IpSecImpl.c +++ b/NetworkPkg/IpSecDxe/IpSecImpl.c @@ -1617,7 +1617,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 {