diff --git a/src/option.c b/src/option.c index 6e8bb8b..f8ba616 100644 --- a/src/option.c +++ b/src/option.c @@ -1036,6 +1036,7 @@ static void dhcp_config_free(struct dhcp_config *config) if (config->flags & CONFIG_CLID) free(config->clid); +#ifdef HAVE_DHCP6 if (config->flags & CONFIG_ADDR6) { struct addrlist *addr, *tmp; @@ -1046,6 +1047,7 @@ static void dhcp_config_free(struct dhcp_config *config) free(addr); } } +#endif free(config); } @@ -3227,7 +3229,9 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma new->netid = NULL; new->filter = NULL; new->clid = NULL; +#ifdef HAVE_DHCP6 new->addr6 = NULL; +#endif while (arg) {