/** @file\r
The general interfaces of the IKEv2.\r
\r
- Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2010 - 2015, 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
// Send out the Packet\r
//\r
- if (UdpService != NULL) {\r
+ if (UdpService != NULL && UdpService->Output != NULL) {\r
Status = Ikev2SendIkePacket (UdpService, (UINT8 *) SaCommon, IkePacket, 0);\r
\r
if (EFI_ERROR (Status)) {\r
//\r
// Send out the Packet\r
//\r
- if (UdpService != NULL) {\r
+ if (UdpService != NULL && UdpService->Output != NULL) {\r
Status = Ikev2SendIkePacket (UdpService, (UINT8 *) &ChildSaSession->SessionCommon, IkePacket, 0);\r
\r
if (EFI_ERROR (Status)) {\r