/** @file\r
The Implementations for Information Exchange.\r
\r
- Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
+ (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
+ Copyright (c) 2010 - 2016, 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
InfoContext = NULL;\r
IkeSaSession = (IKEV2_SA_SESSION *) SaSession;\r
IkePacket = IkePacketAlloc ();\r
- ASSERT (IkePacket != NULL);\r
+ if (IkePacket == NULL) {\r
+ return NULL;\r
+ }\r
\r
//\r
// Fill IkePacket Header.\r
{\r
IKEV2_CHILD_SA_SESSION *ChildSaSession;\r
IKEV2_SA_SESSION *IkeSaSession;\r
- IKE_PAYLOAD *NotifyPayload;\r
IKE_PAYLOAD *DeletePayload;\r
IKE_PAYLOAD *IkePayload;\r
IKEV2_DELETE *Delete;\r
\r
IkeSaSession = (IKEV2_SA_SESSION *) SaSession;\r
\r
- NotifyPayload = NULL;\r
DeletePayload = NULL;\r
Private = NULL;\r
RespondPacket = NULL;\r