diff options
-rw-r--r-- | src/option.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/option.c b/src/option.c index dc1efd3..1355745 100644 --- a/src/option.c +++ b/src/option.c @@ -2227,8 +2227,10 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma comma = split(arg); new = opt_malloc(sizeof(struct auth_zone)); - new->domain = opt_string_alloc(arg); - new->subnet = NULL; + new->domain = canonicalise_opt(arg); + if (!new->domain) + ret_err_free(_("invalid auth-zone"), new); + new->subnet = NULL; new->exclude = NULL; new->interface_names = NULL; new->next = daemon->auth_zones; |