diff options
author | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-10-18 11:33:26 +0000 |
---|---|---|
committer | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-10-18 11:33:26 +0000 |
commit | fbe12b79aef4c2706e90078cc75b94dcf7926ba8 (patch) | |
tree | 3e008e770ede3205f66e38ceb9e3140f749712fd /MdeModulePkg/Universal/Network | |
parent | 6517edbe5156bdf40f4bbd46af001d10ef81c8ed (diff) | |
download | edk2-fbe12b79aef4c2706e90078cc75b94dcf7926ba8.zip edk2-fbe12b79aef4c2706e90078cc75b94dcf7926ba8.tar.gz edk2-fbe12b79aef4c2706e90078cc75b94dcf7926ba8.tar.bz2 |
Refine code to make code run more safely.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10955 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Network')
-rw-r--r-- | MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.c b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.c index be87ec5..2bb8cd9 100644 --- a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.c +++ b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.c @@ -883,6 +883,8 @@ Ip4AccpetFrame ( goto RESTART;
}
}
+
+ ASSERT (Packet != NULL);
Head = Packet->Ip.Ip4;
IP4_GET_CLIP_INFO (Packet)->Status = EFI_SUCCESS;
|