diff --git a/src/option.c b/src/option.c index 730adf4..8fd7b41 100644 --- a/src/option.c +++ b/src/option.c @@ -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) new->flags |= CONFIG_DISABLE; - if (new->hostname) + else if (new->hostname) { dhcp_config_free(new); ret_err(_("DHCP host has multiple names"));