/** @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
// 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