/** @file\r
The general interfaces of the IKEv2.\r
\r
- Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved.<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
IsListEmpty (&IkeSaSession->ChildSaEstablishSessionList));\r
\r
ChildSaSession = Ikev2ChildSaSessionCreate (IkeSaSession, UdpService);\r
+ if (ChildSaSession == NULL) {\r
+ goto ON_ERROR;\r
+ }\r
+ \r
ChildSaCommon = &ChildSaSession->SessionCommon;\r
}\r
\r
IsListEmpty (&IkeSaSession->ChildSaEstablishSessionList));\r
\r
ChildSaSession = Ikev2ChildSaSessionCreate (IkeSaSession, UdpService);\r
+ if (ChildSaSession == NULL) {\r
+ goto ON_ERROR;\r
+ }\r
+ \r
ChildSaCommon = &ChildSaSession->SessionCommon;\r
\r
//\r