From 22c0f4fe8767bd18959626fc999bf59f6992a27f Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Wed, 17 Feb 2016 22:12:31 +0000 Subject: [PATCH] Fix previous commit. --- src/option.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/option.c b/src/option.c index 724540d..c98bdc9 100644 --- a/src/option.c +++ b/src/option.c @@ -452,7 +452,7 @@ static struct { { LOPT_PXE_PROMT, ARG_DUP, ",[]", gettext_noop("Prompt to send to PXE clients."), NULL }, { LOPT_PXE_SERV, ARG_DUP, "", gettext_noop("Boot service for PXE menu."), NULL }, { LOPT_TEST, 0, NULL, gettext_noop("Check configuration syntax."), NULL }, - { LOPT_ADD_MAC, ARG_DUP, "[=base64]", gettext_noop("Add requestor's MAC address to forwarded DNS queries."), NULL }, + { LOPT_ADD_MAC, ARG_DUP, "[=base64|text]", gettext_noop("Add requestor's MAC address to forwarded DNS queries."), NULL }, { LOPT_ADD_SBNET, ARG_ONE, "[,]", gettext_noop("Add specified IP subnet to forwarded DNS queries."), NULL }, { LOPT_CPE_ID, ARG_ONE, "", gettext_noop("Add client identification to forwarded DNS queries."), NULL }, { LOPT_DNSSEC, OPT_DNSSEC_PROXY, NULL, gettext_noop("Proxy DNSSEC validation results from upstream nameservers."), NULL }, @@ -2174,7 +2174,8 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma set_option_bool(OPT_MAC_B64); else if (strcmp(arg, "text") == 0) set_option_bool(OPT_MAC_HEX); - ret_err(gen_err); + else + ret_err(gen_err); } break;