mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-06 12:38:10 +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 (cherry picked from commit9aa00a8a14) (cherry picked from commitea22135384)
This commit is contained in:
parent
f200573a95
commit
bfece9d4fc
1 changed files with 2 additions and 2 deletions
|
|
@ -266,10 +266,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