mirror of https://github.com/acidanthera/audk.git
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:
parent
ceb0574006
commit
0231883b57
|
@ -1617,7 +1617,7 @@ IpSecEspInboundPacket (
|
||||||
//
|
//
|
||||||
// Update the total length field in ip header since processed by esp.
|
// 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) {
|
if (IpVersion == IP_VERSION_4) {
|
||||||
((IP4_HEAD *) IpHead)->TotalLen = HTONS ((UINT16) ((((IP4_HEAD *) IpHead)->HeadLen << 2) + PlainPayloadSize));
|
((IP4_HEAD *) IpHead)->TotalLen = HTONS ((UINT16) ((((IP4_HEAD *) IpHead)->HeadLen << 2) + PlainPayloadSize));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue