mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-02 22:28:01 +02:00
dhcp: nettools: fix parsing of search domains option
'first' was never modified and so the dot was never added.
Fixes: 6adade6f21 ('dhcp: add nettools dhcp4 client')
https://bugzilla.redhat.com/show_bug.cgi?id=1783981
This commit is contained in:
parent
bc2ca6e603
commit
9aa00a8a14
1 changed files with 2 additions and 2 deletions
|
|
@ -246,10 +246,10 @@ lease_option_print_domain_name (GString *str, uint8_t *cache, size_t *n_cachep,
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!first) {
|
if (!first)
|
||||||
g_string_append_c(str, '.');
|
g_string_append_c(str, '.');
|
||||||
|
else
|
||||||
first = FALSE;
|
first = FALSE;
|
||||||
}
|
|
||||||
|
|
||||||
if (!lease_option_print_label (str, n_label, domainp, n_domainp))
|
if (!lease_option_print_label (str, n_label, domainp, n_domainp))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue