From: Fu Siyuan Date: Mon, 6 Jan 2014 03:01:09 +0000 (+0000) Subject: Bug fix: IpSec driver treats BOOLEAN as EFI_STATUS in error handling code. X-Git-Tag: edk2-stable201903~11908 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=979fc9eab575aa33bdcccec709e1791cd1cf5148 Bug fix: IpSec driver treats BOOLEAN as EFI_STATUS in error handling code. Signed-off-by: Fu Siyuan Reviewed-by: Dong, Guo Reviewed-by: Jin, Eric git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15049 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/NetworkPkg/IpSecDxe/Ikev2/Exchange.c b/NetworkPkg/IpSecDxe/Ikev2/Exchange.c index ffa53824d0..7634d11a2a 100644 --- a/NetworkPkg/IpSecDxe/Ikev2/Exchange.c +++ b/NetworkPkg/IpSecDxe/Ikev2/Exchange.c @@ -1,7 +1,7 @@ /** @file The general interfaces of the IKEv2. - Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.
+ Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -467,8 +467,7 @@ Ikev2HandleSa ( // // Validate the IKE packet header. // - Status = Ikev2ValidateHeader (IkeSaSession, IkePacket->Header); - if (EFI_ERROR (Status)) { + if (!Ikev2ValidateHeader (IkeSaSession, IkePacket->Header)) { // // Drop the packet if invalid IKE header. //