device/vlan: check existence of ip6 configuration before reapplying it

The connection might not have an ipv6 configuration, check for this
before calling nm_device_reactivate_ip6_config().

Fixes: 45b77dbcfc

https://bugzilla.redhat.com/show_bug.cgi?id=1307070
This commit is contained in:
Beniamino Galvani 2016-02-12 17:19:34 +01:00
parent 89e806e1a6
commit b9bb1c793d

View file

@ -115,7 +115,8 @@ parent_hwaddr_changed (NMDevice *parent,
* removing the IPv6 configuration; reapply it.
*/
s_ip6 = nm_connection_get_setting_ip6_config (connection);
nm_device_reactivate_ip6_config (NM_DEVICE (self), s_ip6, s_ip6);
if (s_ip6)
nm_device_reactivate_ip6_config (NM_DEVICE (self), s_ip6, s_ip6);
}
}
}