]> git.proxmox.com Git - mirror_edk2.git/commitdiff
NetworkPkg: Code refine to avoid NULL pointer dereferenced.
authorShumin Qiu <shumin.qiu@intel.com>
Fri, 13 Feb 2015 01:00:47 +0000 (01:00 +0000)
committershenshushi <shenshushi@Edk2>
Fri, 13 Feb 2015 01:00:47 +0000 (01:00 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Shumin Qiu <shumin.qiu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16844 6f19259b-4bc3-4df7-8a09-765794883524

NetworkPkg/Dhcp6Dxe/Dhcp6Io.c

index 063605e60947bb6a8c7291e27d8c49445cbbda79..b4e00079260a2924951b68717290805e3ac22f7b 100644 (file)
@@ -2900,7 +2900,10 @@ ON_CONTINUE:
              0\r
              );\r
     if (EFI_ERROR (Status)) {\r
-      Dhcp6CleanupRetry (Instance, DHCP6_PACKET_ALL);\r
+      NET_LIST_FOR_EACH_SAFE (Entry1, Next1, &Service->Child) {\r
+        Instance = NET_LIST_USER_STRUCT (Entry1, DHCP6_INSTANCE, Link);\r
+        Dhcp6CleanupRetry (Instance, DHCP6_PACKET_ALL);\r
+      }\r
     }\r
   }\r
 \r