device: fix fetching the IPv6 default route for assumed devices

Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
Thomas Haller 2014-11-11 12:21:14 +01:00
parent b75dfc62e8
commit 5f017e96b3

View file

@ -3353,7 +3353,7 @@ ip6_config_merge_and_apply (NMDevice *self,
NMPlatformIP6Route *route = &priv->default_route.v6;
if (assumed)
priv->default_route.v6_has = _device_get_default_route_from_platform (self, AF_INET, (NMPlatformIPRoute *) route);
priv->default_route.v6_has = _device_get_default_route_from_platform (self, AF_INET6, (NMPlatformIPRoute *) route);
else {
gateway = nm_ip6_config_get_gateway (composite);
if (gateway) {