summaryrefslogtreecommitdiff
path: root/vpn/vpn-provider.c
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2013-02-19 10:45:07 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-02-19 14:29:41 +0200
commit4b9026564003443390676a5b5d74264207f031e7 (patch)
tree98555057e452030bdcb791d12075e072372bc0e7 /vpn/vpn-provider.c
parent905d85575aacb039295f1d8bd26088dcb8da6355 (diff)
downloadconnman-4b9026564003443390676a5b5d74264207f031e7.tar.gz
connman-4b9026564003443390676a5b5d74264207f031e7.tar.bz2
connman-4b9026564003443390676a5b5d74264207f031e7.zip
vpn-provider: ClearProperty works with all properties
Diffstat (limited to 'vpn/vpn-provider.c')
-rw-r--r--vpn/vpn-provider.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vpn/vpn-provider.c b/vpn/vpn-provider.c
index 0b5b5623..8606adc3 100644
--- a/vpn/vpn-provider.c
+++ b/vpn/vpn-provider.c
@@ -460,6 +460,8 @@ static DBusMessage *clear_property(DBusConnection *conn, DBusMessage *msg,
if (handle_routes == FALSE)
send_routes(provider, provider->user_routes, name);
+ } else if (vpn_provider_get_string(provider, name) != NULL) {
+ vpn_provider_set_string(provider, name, NULL);
} else {
return __connman_error_invalid_property(msg);
}