From f6f626de34e8acd24a5bf872455a24660de8d793 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Fri, 26 Apr 2013 11:06:58 -0500 Subject: [PATCH] core: ensure active connection has a device before exporting it --- src/nm-active-connection.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nm-active-connection.c b/src/nm-active-connection.c index a5264b2e04..dadb52c5f4 100644 --- a/src/nm-active-connection.c +++ b/src/nm-active-connection.c @@ -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); }