/** @file\r
IP4 input process.\r
\r
-Copyright (c) 2005 - 2014, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2005 - 2017, Intel Corporation. All rights reserved.<BR>\r
(C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
\r
This program and the accompanying materials\r
if (!mIpSec2Installed) {\r
goto ON_EXIT;\r
}\r
+ ASSERT (mIpSec != NULL);\r
\r
Packet = *Netbuf;\r
RecycleEvent = NULL;\r
FragmentCount = Packet->BlockOpNum;\r
\r
ZeroMem (&ZeroHead, sizeof (IP4_HEAD));\r
- \r
- if (mIpSec == NULL) {\r
- gBS->LocateProtocol (&gEfiIpSec2ProtocolGuid, NULL, (VOID **) &mIpSec);\r
- if (mIpSec == NULL) {\r
- goto ON_EXIT;\r
- }\r
- }\r
\r
//\r
// Check whether the IPsec enable variable is set.\r