Commit bfece9d4 authored by Beniamino Galvani's avatar Beniamino Galvani

dhcp: nettools: fix parsing of search domains option

'first' was never modified and so the dot was never added.

Fixes: 6adade6f ('dhcp: add nettools dhcp4 client')

https://bugzilla.redhat.com/show_bug.cgi?id=1783981
(cherry picked from commit 9aa00a8a)
(cherry picked from commit ea221353)
parent f200573a
Pipeline #89863 passed with stage
in 32 minutes and 9 seconds
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment