diff options
author | Fu Siyuan <siyuan.fu@intel.com> | 2014-01-06 03:01:09 +0000 |
---|---|---|
committer | sfu5 <sfu5@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-01-06 03:01:09 +0000 |
commit | 979fc9eab575aa33bdcccec709e1791cd1cf5148 (patch) | |
tree | b7077d2efea4803d5767579274c3ca12dd47dff8 /NetworkPkg/IpSecDxe | |
parent | 8ff272ee837ebdfba6b72ed3dcf5e7ab136d8af0 (diff) | |
download | edk2-979fc9eab575aa33bdcccec709e1791cd1cf5148.tar.gz edk2-979fc9eab575aa33bdcccec709e1791cd1cf5148.tar.bz2 edk2-979fc9eab575aa33bdcccec709e1791cd1cf5148.zip |
Bug fix: IpSec driver treats BOOLEAN as EFI_STATUS in error handling code.
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Dong, Guo <guo.dong@intel.com>
Reviewed-by: Jin, Eric <eric.jin@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15049 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'NetworkPkg/IpSecDxe')
-rw-r--r-- | NetworkPkg/IpSecDxe/Ikev2/Exchange.c | 5 |
1 files changed, 2 insertions, 3 deletions
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.<BR>
+ Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>
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.
//
|