vpn-provider: SetProperty works with all properties
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Tue, 19 Feb 2013 08:45:08 +0000 (10:45 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 19 Feb 2013 12:29:42 +0000 (14:29 +0200)
vpn/vpn-provider.c

index 8606adc..0336636 100644 (file)
@@ -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);
 }