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
/** @file\r
The general interfaces of the IKEv2.\r
\r
/** @file\r
The general interfaces of the IKEv2.\r
\r
- Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
//\r
// Validate the IKE packet header.\r
//\r
//\r
// Validate the IKE packet header.\r
//\r
- Status = Ikev2ValidateHeader (IkeSaSession, IkePacket->Header);\r
- if (EFI_ERROR (Status)) {\r
+ if (!Ikev2ValidateHeader (IkeSaSession, IkePacket->Header)) {\r
//\r
// Drop the packet if invalid IKE header.\r
//\r
//\r
// Drop the packet if invalid IKE header.\r
//\r