summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c
diff options
context:
space:
mode:
authorydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>2012-02-15 02:43:07 +0000
committerydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>2012-02-15 02:43:07 +0000
commit328ce03e55c2d802e1c83739d51c54bbcc92d87b (patch)
tree000714485313a4dbb535258ac81d2508c1375e4a /MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c
parent21e3aefed2b24a3875a2d056164e46677089e4bb (diff)
downloadedk2-328ce03e55c2d802e1c83739d51c54bbcc92d87b.zip
edk2-328ce03e55c2d802e1c83739d51c54bbcc92d87b.tar.gz
edk2-328ce03e55c2d802e1c83739d51c54bbcc92d87b.tar.bz2
Add code check to avoid access violation.
Signed-off-by: ydong10 Reviewed-by: rsun3 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13014 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c')
-rw-r--r--MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c
index 331f9d8..0853f98 100644
--- a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c
+++ b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c
@@ -403,6 +403,7 @@ IScsiReceiveLoginRsp (
//
// A Login Response is received, process it.
//
+ ASSERT (Pdu != NULL);
Status = IScsiProcessLoginRsp (Conn, Pdu);
NetbufFree (Pdu);