diff options
author | Shumin Qiu <shumin.qiu@intel.com> | 2015-02-13 01:00:47 +0000 |
---|---|---|
committer | shenshushi <shenshushi@Edk2> | 2015-02-13 01:00:47 +0000 |
commit | 01b699a971ba90bca1ad8b608854d910eaaee5cc (patch) | |
tree | 059f105ec7daf84153e762581fdacf5e0de71a73 | |
parent | 6ca9135a654a658c9fbaa698cfa69a76c7719be1 (diff) | |
download | edk2-01b699a971ba90bca1ad8b608854d910eaaee5cc.zip edk2-01b699a971ba90bca1ad8b608854d910eaaee5cc.tar.gz edk2-01b699a971ba90bca1ad8b608854d910eaaee5cc.tar.bz2 |
NetworkPkg: Code refine to avoid NULL pointer dereferenced.
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
-rw-r--r-- | NetworkPkg/Dhcp6Dxe/Dhcp6Io.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/NetworkPkg/Dhcp6Dxe/Dhcp6Io.c b/NetworkPkg/Dhcp6Dxe/Dhcp6Io.c index 063605e..b4e0007 100644 --- a/NetworkPkg/Dhcp6Dxe/Dhcp6Io.c +++ b/NetworkPkg/Dhcp6Dxe/Dhcp6Io.c @@ -2900,7 +2900,10 @@ ON_CONTINUE: 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);
+ }
}
}
|