diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2019-07-04 08:40:10 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2019-07-04 08:40:10 +0000 |
commit | e86b9096262054dbb4228fb94def3728edcc8a37 (patch) | |
tree | 38011feac90fc25a7214578f3afe100de515941f /contrib/unbound/services/modstack.c | |
parent | 9f011bca829751ed3552ac94fe7c865d75fabfc4 (diff) | |
parent | 366b94c4a9552acfb560d3234aea0955ebc1eb8e (diff) |
Notes
Diffstat (limited to 'contrib/unbound/services/modstack.c')
-rw-r--r-- | contrib/unbound/services/modstack.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/contrib/unbound/services/modstack.c b/contrib/unbound/services/modstack.c index 136245a96838..05b949d1e330 100644 --- a/contrib/unbound/services/modstack.c +++ b/contrib/unbound/services/modstack.c @@ -113,8 +113,14 @@ modstack_config(struct module_stack* stack, const char* module_conf) for(i=0; i<stack->num; i++) { stack->mod[i] = module_factory(&module_conf); if(!stack->mod[i]) { - log_err("Unknown value for next module: '%s'", - module_conf); + char md[256]; + snprintf(md, sizeof(md), "%s", module_conf); + if(strchr(md, ' ')) *(strchr(md, ' ')) = 0; + if(strchr(md, '\t')) *(strchr(md, '\t')) = 0; + log_err("Unknown value in module-config, module: '%s'." + " This module is not present (not compiled in)," + " See the list of linked modules with unbound -h", + md); return 0; } } |