Revision: 16844 http://sourceforge.net/p/edk2/code/16844 Author: shenshushi Date: 2015-02-13 01:00:47 +0000 (Fri, 13 Feb 2015) Log Message: ----------- NetworkPkg: Code refine to avoid NULL pointer dereferenced.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu <shumin....@intel.com> Reviewed-by: Ye Ting <ting...@intel.com> Reviewed-by: Fu Siyuan <siyuan...@intel.com> Modified Paths: -------------- trunk/edk2/NetworkPkg/Dhcp6Dxe/Dhcp6Io.c Modified: trunk/edk2/NetworkPkg/Dhcp6Dxe/Dhcp6Io.c =================================================================== --- trunk/edk2/NetworkPkg/Dhcp6Dxe/Dhcp6Io.c 2015-02-12 15:13:37 UTC (rev 16843) +++ trunk/edk2/NetworkPkg/Dhcp6Dxe/Dhcp6Io.c 2015-02-13 01:00:47 UTC (rev 16844) @@ -2900,7 +2900,10 @@ 0 ); if (EFI_ERROR (Status)) { - Dhcp6CleanupRetry (Instance, DHCP6_PACKET_ALL); + NET_LIST_FOR_EACH_SAFE (Entry1, Next1, &Service->Child) { + Instance = NET_LIST_USER_STRUCT (Entry1, DHCP6_INSTANCE, Link); + Dhcp6CleanupRetry (Instance, DHCP6_PACKET_ALL); + } } } ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits