mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-06 11:28:32 +02:00
core: ensure active connection has a device before exporting it
This commit is contained in:
parent
428ebf42b0
commit
f6f626de34
1 changed files with 2 additions and 0 deletions
|
|
@ -210,6 +210,8 @@ nm_active_connection_export (NMActiveConnection *self)
|
|||
NMActiveConnectionPrivate *priv = NM_ACTIVE_CONNECTION_GET_PRIVATE (self);
|
||||
static guint32 counter = 0;
|
||||
|
||||
g_assert (priv->device || priv->vpn);
|
||||
|
||||
priv->path = g_strdup_printf (NM_DBUS_PATH "/ActiveConnection/%d", counter++);
|
||||
nm_dbus_manager_register_object (nm_dbus_manager_get (), priv->path, self);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue