aboutsummaryrefslogtreecommitdiff
path: root/contrib/unbound/services/modstack.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2019-07-04 08:40:10 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2019-07-04 08:40:10 +0000
commite86b9096262054dbb4228fb94def3728edcc8a37 (patch)
tree38011feac90fc25a7214578f3afe100de515941f /contrib/unbound/services/modstack.c
parent9f011bca829751ed3552ac94fe7c865d75fabfc4 (diff)
parent366b94c4a9552acfb560d3234aea0955ebc1eb8e (diff)
Notes
Diffstat (limited to 'contrib/unbound/services/modstack.c')
-rw-r--r--contrib/unbound/services/modstack.c10
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;
}
}