diff options
-rw-r--r-- | Src/module.c | 6 | ||||
-rw-r--r-- | Src/params.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/Src/module.c b/Src/module.c index ce926c27a..d10206155 100644 --- a/Src/module.c +++ b/Src/module.c @@ -1228,8 +1228,10 @@ getconddef(int inf, char *name, int autol) load_module(p->module); f = 0; p = NULL; - } else - break; + } else { + deleteconddef(p); + return NULL; + } } else #endif break; diff --git a/Src/params.c b/Src/params.c index 8cba005d4..40e427f17 100644 --- a/Src/params.c +++ b/Src/params.c @@ -292,6 +292,10 @@ getparamnode(HashTable ht, char *nam) if (!load_module(mn)) return NULL; hn = gethashnode2(ht, nam); + if (((Param) hn) == pm) { + pm->flags &= ~PM_AUTOLOAD; + zwarnnam(nam, "autoload failed", NULL, 0); + } } return hn; } |