summaryrefslogtreecommitdiff
path: root/vpn/vpn-provider.c
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2013-02-19 10:45:08 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-02-19 14:29:42 +0200
commit56687906c9ac83c0480175b0354f7582a03a685d (patch)
tree1293d8bb13fd256fd1ccf51de42d889eb07d36e5 /vpn/vpn-provider.c
parent4b9026564003443390676a5b5d74264207f031e7 (diff)
downloadconnman-56687906c9ac83c0480175b0354f7582a03a685d.tar.gz
connman-56687906c9ac83c0480175b0354f7582a03a685d.tar.bz2
connman-56687906c9ac83c0480175b0354f7582a03a685d.zip
vpn-provider: SetProperty works with all properties
Diffstat (limited to 'vpn/vpn-provider.c')
-rw-r--r--vpn/vpn-provider.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/vpn/vpn-provider.c b/vpn/vpn-provider.c
index 8606adc3..03366364 100644
--- a/vpn/vpn-provider.c
+++ b/vpn/vpn-provider.c
@@ -438,8 +438,12 @@ static DBusMessage *set_property(DBusConnection *conn, DBusMessage *msg,
send_routes(provider, provider->user_routes,
"UserRoutes");
}
- } else
- return __connman_error_invalid_property(msg);
+ } else {
+ const char *str;
+
+ dbus_message_iter_get_basic(&value, &str);
+ vpn_provider_set_string(provider, name, str);
+ }
return g_dbus_create_reply(msg, DBUS_TYPE_INVALID);
}