core: fix find_vlan_parent() to return proper device (bgo #695362)
when VLAN parent device is identified through a connection UUID
This commit is contained in:
@@ -1029,7 +1029,7 @@ find_vlan_parent (NMManager *self,
|
|||||||
if (req) {
|
if (req) {
|
||||||
candidate = nm_active_connection_get_connection (NM_ACTIVE_CONNECTION (req));
|
candidate = nm_active_connection_get_connection (NM_ACTIVE_CONNECTION (req));
|
||||||
if (candidate == parent_connection)
|
if (candidate == parent_connection)
|
||||||
return parent;
|
return NM_DEVICE (iter->data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user