[network-manager-pptp] plugin: avoid calling GetAll on service object



commit 74a2f31d707b2a2019772c9d3d32c64a76b7356c
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Mon Mar 21 13:39:37 2016 +0100

    plugin: avoid calling GetAll on service object
    
    The D-Bus policy won't allow that and we don't need that anyway.

 src/nm-pptp-pppd-plugin.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/nm-pptp-pppd-plugin.c b/src/nm-pptp-pppd-plugin.c
index d10029c..2b8c819 100644
--- a/src/nm-pptp-pppd-plugin.c
+++ b/src/nm-pptp-pppd-plugin.c
@@ -315,7 +315,9 @@ plugin_init (void)
                return -1;
        }
 
-       proxy = g_dbus_proxy_new_sync (bus, G_DBUS_CALL_FLAGS_NONE, NULL,
+       proxy = g_dbus_proxy_new_sync (bus,
+                                      G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES,
+                                      NULL,
                                       NM_DBUS_SERVICE_PPTP_PPP,
                                       bus_name,
                                       NM_DBUS_INTERFACE_PPTP_PPP,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]