mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 01:20:07 +01:00
device: check nm_ip6_config_get_address_first_nontentative() argument
Since commit9ff161b2a1("device: move have_ip6_address() to nm_ip6_config_get_address_first_nontentative()") the IP configuration argument of nm_ip6_config_get_address_first_nontentative() must be non-NULL. Add checks where needed. Fixes:9ff161b2a1
This commit is contained in:
parent
05b34e11d6
commit
b5a469a894
1 changed files with 4 additions and 2 deletions
|
|
@ -5538,7 +5538,8 @@ linklocal6_start (NMDevice *self)
|
|||
|
||||
linklocal6_cleanup (self);
|
||||
|
||||
if (nm_ip6_config_get_address_first_nontentative (priv->ip6_config, TRUE))
|
||||
if ( priv->ip6_config
|
||||
&& nm_ip6_config_get_address_first_nontentative (priv->ip6_config, TRUE))
|
||||
return NM_ACT_STAGE_RETURN_FINISH;
|
||||
|
||||
connection = nm_device_get_applied_connection (self);
|
||||
|
|
@ -5773,7 +5774,8 @@ rdisc_ra_timeout (NMRDisc *rdisc, NMDevice *self)
|
|||
* IPv6 configuration, like manual IPv6 addresses or external IPv6
|
||||
* config, consider that sufficient for IPv6 success.
|
||||
*/
|
||||
if (nm_ip6_config_get_address_first_nontentative (priv->ip6_config, FALSE))
|
||||
if ( priv->ip6_config
|
||||
&& nm_ip6_config_get_address_first_nontentative (priv->ip6_config, FALSE))
|
||||
nm_device_activate_schedule_ip6_config_result (self);
|
||||
else
|
||||
nm_device_activate_schedule_ip6_config_timeout (self);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue