Fixed the K9 failure.
authorqianouyang <qianouyang@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 17 Nov 2010 03:41:37 +0000 (03:41 +0000)
committerqianouyang <qianouyang@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 17 Nov 2010 03:41:37 +0000 (03:41 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11073 6f19259b-4bc3-4df7-8a09-765794883524

NetworkPkg/Ip6Dxe/Ip6Input.c

index f63c1af..55f0ae8 100644 (file)
@@ -738,8 +738,6 @@ Ip6PreProcessPacket (
      OUT UINT32          *UnFragmentLen,\r
      OUT BOOLEAN         *Fragmented, \r
      OUT EFI_IP6_HEADER  **Head\r
-     \r
-     \r
   )\r
 {\r
   UINT16                    PayloadLen;\r
@@ -1059,6 +1057,13 @@ Ip6AcceptFrame (
     }\r
   }\r
 \r
+  //\r
+  // Check the Packet again.\r
+  //\r
+  if (Packet == NULL) {\r
+    goto Restart;\r
+  }\r
+  \r
   //\r
   // Packet may have been changed. The ownership of the packet\r
   // is transfered to the packet process logic.\r