summaryrefslogtreecommitdiff
path: root/src/dhcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dhcp.c')
-rw-r--r--src/dhcp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dhcp.c b/src/dhcp.c
index 68bbc423..decedd54 100644
--- a/src/dhcp.c
+++ b/src/dhcp.c
@@ -119,6 +119,8 @@ void connman_dhcp_set_value(struct connman_dhcp *dhcp,
} else if (g_strcmp0(key, "Hostname") == 0) {
__connman_utsname_set_hostname(value);
} else if (g_strcmp0(key, "Timeserver") == 0) {
+ g_free(dhcp->element->ipv4.timeserver);
+ dhcp->element->ipv4.timeserver = g_strdup(value);
} else if (g_strcmp0(key, "MTU") == 0) {
}
}