diff options
Diffstat (limited to 'MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4Config.c')
-rw-r--r-- | MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4Config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4Config.c b/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4Config.c index c0cc15f3de..326fb4dc33 100644 --- a/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4Config.c +++ b/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4Config.c @@ -66,7 +66,7 @@ EfiNicIp4ConfigGetName ( }
if (NicAddr != NULL) {
- *NicAddr = Instance->NicAddr;
+ CopyMem (NicAddr, &Instance->NicAddr, sizeof (NIC_ADDR));
}
return EFI_SUCCESS;
@@ -628,7 +628,7 @@ Ip4ConfigOnDhcp4Complete ( goto ON_EXIT;
}
- Instance->NicConfig->NicAddr = Instance->NicAddr;
+ CopyMem (&Instance->NicConfig->NicAddr, &Instance->NicAddr, sizeof (NIC_ADDR));
Instance->NicConfig->Source = IP4_CONFIG_SOURCE_DHCP;
Instance->NicConfig->Perment = Perment;
|