add security check.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8680 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -736,6 +736,8 @@ Ip4FormCallback (
|
||||
case KEY_SAVE_CHANGES:
|
||||
Ip4ConfigInstance = Private->Current->Ip4ConfigInstance;
|
||||
NicInfo = AllocateZeroPool (sizeof (NIC_IP4_CONFIG_INFO) + 2 * sizeof (EFI_IP4_ROUTE_TABLE));
|
||||
ASSERT (NicInfo != NULL);
|
||||
|
||||
NicInfo->Ip4Info.RouteTable = (EFI_IP4_ROUTE_TABLE *) (NicInfo + 1);
|
||||
|
||||
if (!Private->Current->SessionConfigData.Enabled) {
|
||||
|
Reference in New Issue
Block a user