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:
Jiří Klimeš
2013-03-12 18:01:11 +01:00
parent 0e92228476
commit 8e748bced8

View File

@@ -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);
} }
} }