mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 13:44:33 +02:00
Add pointer check for NULL before dereference it.
Signed-off-by: sfu5 Reviewed-by: gdong1 Reviewed-by : czhan46 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12764 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
d359254990
commit
e1982d4ca9
@ -1621,7 +1621,9 @@ DhcpOnTimerTick (
|
|||||||
goto END_SESSION;
|
goto END_SESSION;
|
||||||
}
|
}
|
||||||
|
|
||||||
Instance->ElaspedTime= 0;
|
if (Instance != NULL) {
|
||||||
|
Instance->ElaspedTime= 0;
|
||||||
|
}
|
||||||
|
|
||||||
Status = DhcpSendMessage (
|
Status = DhcpSendMessage (
|
||||||
DhcpSb,
|
DhcpSb,
|
||||||
@ -1643,7 +1645,9 @@ DhcpOnTimerTick (
|
|||||||
goto END_SESSION;
|
goto END_SESSION;
|
||||||
}
|
}
|
||||||
|
|
||||||
Instance->ElaspedTime= 0;
|
if (Instance != NULL) {
|
||||||
|
Instance->ElaspedTime= 0;
|
||||||
|
}
|
||||||
|
|
||||||
Status = DhcpSendMessage (
|
Status = DhcpSendMessage (
|
||||||
DhcpSb,
|
DhcpSb,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user