mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-06 10:30:39 +01:00
core: fix hanlding of IPv6LL address if interface already has one
act_stage3_ip6_config_start() expects a non-NULL NMIP6Config if the sub-method returns NM_ACT_STAGE_RETURN_SUCCESS.
This commit is contained in:
parent
c4a087c36d
commit
7206306456
1 changed files with 5 additions and 0 deletions
|
|
@ -3444,6 +3444,11 @@ act_stage3_ip6_config_start (NMDevice *self,
|
|||
ret = NM_ACT_STAGE_RETURN_POSTPONE;
|
||||
} else if (strcmp (method, NM_SETTING_IP6_CONFIG_METHOD_LINK_LOCAL) == 0) {
|
||||
ret = linklocal6_start (self);
|
||||
if (ret == NM_ACT_STAGE_RETURN_SUCCESS) {
|
||||
/* New blank config; LL address is already in priv->ext_ip6_config */
|
||||
*out_config = nm_ip6_config_new ();
|
||||
g_assert (*out_config);
|
||||
}
|
||||
} else if (strcmp (method, NM_SETTING_IP6_CONFIG_METHOD_DHCP) == 0) {
|
||||
/* Router advertisements shouldn't be used in pure DHCP mode */
|
||||
if (priv->ip6_accept_ra_path)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue