mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-11 10:40:50 +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 (cherry picked from commit9aa00a8a14)
This commit is contained in:
parent
e4e6104c0c
commit
ea22135384
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