summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-01-03 14:36:28 +0200
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2012-01-05 11:09:16 +0100
commit70ce3cd0a6130605a5f3c1f4f334bd501bece184 (patch)
tree70b21b96f9c5b9e8b7b534c7da0def4bf8650150 /plugins
parent097f0059d972e639d75ac7d0b27db759fbf05e5c (diff)
downloadconnman-70ce3cd0a6130605a5f3c1f4f334bd501bece184.tar.gz
connman-70ce3cd0a6130605a5f3c1f4f334bd501bece184.tar.bz2
connman-70ce3cd0a6130605a5f3c1f4f334bd501bece184.zip
service: Return all system defined nameservers when asked
The connman_service_get_nameservers() is changed to return all system defined nameservers. This means that the function now returns an allocated array of all nameservers and caller must deallocate the returned array. The change is needed so that we can combine the nameservers that are set by DHCP code and the IPv6 nameservers that are set by router advertisements.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/pacrunner.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/pacrunner.c b/plugins/pacrunner.c
index 84c22ab0..0a9fa553 100644
--- a/plugins/pacrunner.c
+++ b/plugins/pacrunner.c
@@ -183,6 +183,7 @@ static void create_proxy_configuration(void)
connman_dbus_dict_append_array(&dict, "Nameservers",
DBUS_TYPE_STRING, append_string_list,
str_list);
+ g_strfreev(str_list);
connman_dbus_dict_close(&iter, &dict);