summaryrefslogtreecommitdiffstats
path: root/NetworkPkg/IpSecDxe
diff options
context:
space:
mode:
authorBruce Cran <bruce@cran.org.uk>2015-07-26 08:03:05 +0000
committerjljusten <jljusten@Edk2>2015-07-26 08:03:05 +0000
commit0231883b57722349b9236dac5a8dd87f00fa40fb (patch)
tree25a96a0f239fafe332c6477957ab45b299d0992f /NetworkPkg/IpSecDxe
parentceb05740060c51afa4d20f01af225ac44daaa10a (diff)
downloadedk2-0231883b57722349b9236dac5a8dd87f00fa40fb.tar.gz
edk2-0231883b57722349b9236dac5a8dd87f00fa40fb.tar.bz2
edk2-0231883b57722349b9236dac5a8dd87f00fa40fb.zip
NetworkPkg: Fix bug in IpSecImpl.c caused by missing parentheses
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Bruce Cran <bruce@cran.org.uk> Cc: Siyuan Fu <siyuan.fu@intel.com> Reviewed-by: Fu Siyuan <siyuan.fu@intel.com> [lersek@redhat.com: updated patch based on Siyuan's feedback] Signed-off-by: Laszlo Ersek <lersek@redhat.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18045 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'NetworkPkg/IpSecDxe')
-rw-r--r--NetworkPkg/IpSecDxe/IpSecImpl.c2
1 files changed, 1 insertions, 1 deletions
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 {