mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-09 20:10:34 +01: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;
|
||||
}
|
||||
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue