diff options
Diffstat (limited to 'MdeModulePkg/Universal')
-rw-r--r-- | MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Io.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Io.c b/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Io.c index 65ab5ac702..b3ac646446 100644 --- a/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Io.c +++ b/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Io.c @@ -1621,7 +1621,9 @@ DhcpOnTimerTick ( goto END_SESSION;
}
- Instance->ElaspedTime= 0;
+ if (Instance != NULL) {
+ Instance->ElaspedTime= 0;
+ }
Status = DhcpSendMessage (
DhcpSb,
@@ -1643,7 +1645,9 @@ DhcpOnTimerTick ( goto END_SESSION;
}
- Instance->ElaspedTime= 0;
+ if (Instance != NULL) {
+ Instance->ElaspedTime= 0;
+ }
Status = DhcpSendMessage (
DhcpSb,
|