mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Print correct module that failed when module-config is wrong.
git-svn-id: file:///svn/unbound/trunk@5128 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
a62c1135fe
commit
a82c0eeece
2 changed files with 5 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
28 February 2019: Wouter
|
28 February 2019: Wouter
|
||||||
- Remove memory leak on pythonmod python2 script file init.
|
- Remove memory leak on pythonmod python2 script file init.
|
||||||
- Remove swig gcc8 python function cast warnings, they are ignored.
|
- Remove swig gcc8 python function cast warnings, they are ignored.
|
||||||
|
- Print correct module that failed when module-config is wrong.
|
||||||
|
|
||||||
27 February 2019: Wouter
|
27 February 2019: Wouter
|
||||||
- Fix #4229: Unbound man pages lack information, about access-control
|
- Fix #4229: Unbound man pages lack information, about access-control
|
||||||
|
|
|
||||||
|
|
@ -113,10 +113,13 @@ modstack_config(struct module_stack* stack, const char* module_conf)
|
||||||
for(i=0; i<stack->num; i++) {
|
for(i=0; i<stack->num; i++) {
|
||||||
stack->mod[i] = module_factory(&module_conf);
|
stack->mod[i] = module_factory(&module_conf);
|
||||||
if(!stack->mod[i]) {
|
if(!stack->mod[i]) {
|
||||||
|
char md[256];
|
||||||
|
snprintf(md, sizeof(md), "%s", module_conf);
|
||||||
|
if(strchr(md, ' ')) *(strchr(md, ' ')) = 0;
|
||||||
log_err("Unknown value in module-config, module: '%s'."
|
log_err("Unknown value in module-config, module: '%s'."
|
||||||
" This module is not present (not compiled in),"
|
" This module is not present (not compiled in),"
|
||||||
" See the list of linked modules with unbound -h",
|
" See the list of linked modules with unbound -h",
|
||||||
module_conf);
|
md);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue