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
This commit is contained in:
Bruce Cran 2015-07-26 08:03:05 +00:00 committed by jljusten
parent ceb0574006
commit 0231883b57
1 changed files with 1 additions and 1 deletions

View File

@ -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 {