Fix c9bc0156a8d36d56735831cb81e786d628ed73e

Eg.

dhcp-host=AA:BB:CC:DD:EE:FF,192.168.1.5,server,infinite

is broken.

Thanks to Dominik for the diagnosis.
This commit is contained in:
Simon Kelley
2024-12-23 15:14:27 +00:00
parent fcb40ee73d
commit 49ea7db74e

View File

@@ -4161,7 +4161,7 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
} }
else if (strcmp(arg, "ignore") == 0) else if (strcmp(arg, "ignore") == 0)
new->flags |= CONFIG_DISABLE; new->flags |= CONFIG_DISABLE;
if (new->hostname) else if (new->hostname)
{ {
dhcp_config_free(new); dhcp_config_free(new);
ret_err(_("DHCP host has multiple names")); ret_err(_("DHCP host has multiple names"));