summaryrefslogtreecommitdiff
path: root/vpn
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2013-02-19 08:45:08 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-02-19 12:29:42 (GMT)
commit56687906c9ac83c0480175b0354f7582a03a685d (patch)
tree1293d8bb13fd256fd1ccf51de42d889eb07d36e5 /vpn
parent4b9026564003443390676a5b5d74264207f031e7 (diff)
downloadconnman-56687906c9ac83c0480175b0354f7582a03a685d.zip
connman-56687906c9ac83c0480175b0354f7582a03a685d.tar.gz
connman-56687906c9ac83c0480175b0354f7582a03a685d.tar.bz2
vpn-provider: SetProperty works with all properties
Diffstat (limited to 'vpn')
-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 8606adc..0336636 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);
}