diff --git a/src/dhcp/nm-dhcp-nettools.c b/src/dhcp/nm-dhcp-nettools.c index a71a7a13de..5428e7c98d 100644 --- a/src/dhcp/nm-dhcp-nettools.c +++ b/src/dhcp/nm-dhcp-nettools.c @@ -266,10 +266,10 @@ lease_option_print_domain_name (GString *str, uint8_t *cache, size_t *n_cachep, return TRUE; } - if (!first) { + if (!first) g_string_append_c(str, '.'); + else first = FALSE; - } if (!lease_option_print_label (str, n_label, domainp, n_domainp)) return FALSE;