diff --git a/src/option.c b/src/option.c index b21fcba..3cf3520 100644 --- a/src/option.c +++ b/src/option.c @@ -4155,7 +4155,12 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma } else if (strcmp(arg, "ignore") == 0) new->flags |= CONFIG_DISABLE; - else + if (new->hostname) + { + dhcp_config_free(new); + ret_err(_("DHCP host has multiple names")); + } + else { if (!(new->hostname = canonicalise_opt(arg)) || !legal_hostname(new->hostname))