mirror of https://github.com/acidanthera/audk.git
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>
This commit is contained in:
parent
dd9044b310
commit
bec55c33c7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue