From 49ea7db74ea857f25a5ad8d49155394aea684932 Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Mon, 23 Dec 2024 15:14:27 +0000 Subject: [PATCH] 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. --- src/option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"));