From: Jukka Rissanen Date: Tue, 19 Feb 2013 08:45:07 +0000 (+0200) Subject: vpn-provider: ClearProperty works with all properties X-Git-Tag: 1.12~63 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4b9026564003443390676a5b5d74264207f031e7;p=platform%2Fupstream%2Fconnman.git vpn-provider: ClearProperty works with all properties --- diff --git a/vpn/vpn-provider.c b/vpn/vpn-provider.c index 0b5b562..8606adc 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); }