diff options
author | Zhang Lubo <lubo.zhang@intel.com> | 2016-02-01 11:29:57 +0800 |
---|---|---|
committer | Jiaxin Wu <jiaxin.wu@intel.com> | 2016-02-03 11:43:19 +0800 |
commit | bec55c33c77253cd71773cca8b4f15b9f99b2b14 (patch) | |
tree | 36e61302f505334334c044b4a8505fcac0f50422 /NetworkPkg | |
parent | dd9044b310ae2be2ae989a522979feee86b39cc8 (diff) | |
download | edk2-bec55c33c77253cd71773cca8b4f15b9f99b2b14.tar.gz edk2-bec55c33c77253cd71773cca8b4f15b9f99b2b14.tar.bz2 edk2-bec55c33c77253cd71773cca8b4f15b9f99b2b14.zip |
NetworkPkg: Fix suspicious dereference of pointer 'Mode.Ia'
This patch is used to fix suspicious dereference of pointer 'Mode.Ia'
before NULL check.
Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Ye Ting <ting.ye@intel.com>
Cc: Wu Jiaxin <jiaxin.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Zhang Lubo <lubo.zhang@intel.com>
Reviewed-by: Siyuan Fu <siyuan.fu@intel.com>
Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
Diffstat (limited to 'NetworkPkg')
-rw-r--r-- | NetworkPkg/UefiPxeBcDxe/PxeBcDhcp6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/NetworkPkg/UefiPxeBcDxe/PxeBcDhcp6.c b/NetworkPkg/UefiPxeBcDxe/PxeBcDhcp6.c index 6d39437252..8003f31491 100644 --- a/NetworkPkg/UefiPxeBcDxe/PxeBcDhcp6.c +++ b/NetworkPkg/UefiPxeBcDxe/PxeBcDhcp6.c @@ -2073,7 +2073,7 @@ PxeBcDhcp6Sarr ( return Status;
}
- ASSERT (Mode.Ia->State == Dhcp6Bound);
+ ASSERT ((Mode.Ia != NULL) && (Mode.Ia->State == Dhcp6Bound));
//
// DHCP6 doesn't have an option to specify the router address on the subnet, the only way to get the
// router address in IP6 is the router discovery mechanism (the RS and RA, which only be handled when
|