[PATCH v2 11/15] vpn-provider: Type string in provider needs to be in lower case

Jukka Rissanen jukka.rissanen at linux.intel.com
Tue Nov 27 06:10:21 PST 2012


---
 vpn/vpn-provider.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vpn/vpn-provider.c b/vpn/vpn-provider.c
index d12b003..ec882f5 100644
--- a/vpn/vpn-provider.c
+++ b/vpn/vpn-provider.c
@@ -1900,7 +1900,7 @@ int vpn_provider_set_string(struct vpn_provider *provider,
 
 	if (g_str_equal(key, "Type") == TRUE) {
 		g_free(provider->type);
-		provider->type = g_strdup(value);
+		provider->type = g_ascii_strdown(value, -1);
 	} else if (g_str_equal(key, "Name") == TRUE) {
 		g_free(provider->name);
 		provider->name = g_strdup(value);
-- 
1.7.11.4




More information about the connman mailing list