diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-05-07 14:20:07 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-05-07 14:20:07 +0200 |
commit | 9ed218dc2ce9826e60d345482a5cdaabd25f4163 (patch) | |
tree | 430cd7b85c1a01c809eb0f61a5ba7d5ef9b5c3a1 /runtime/modules.c | |
parent | 7f846c53d6519476b6118282ba6b3bad625e43a3 (diff) | |
parent | 40254dcc8cf3d9ab17f30f417a95709cbf9204bf (diff) | |
download | rsyslog-9ed218dc2ce9826e60d345482a5cdaabd25f4163.tar.gz rsyslog-9ed218dc2ce9826e60d345482a5cdaabd25f4163.tar.bz2 rsyslog-9ed218dc2ce9826e60d345482a5cdaabd25f4163.zip |
Merge branch 'master' into master-tcp-compress-stream
Diffstat (limited to 'runtime/modules.c')
-rw-r--r-- | runtime/modules.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/modules.c b/runtime/modules.c index e9d8d959..56606306 100644 --- a/runtime/modules.c +++ b/runtime/modules.c @@ -1045,7 +1045,6 @@ Load(uchar *pModName, sbool bConfLoad, struct nvlst *lst) if(bConfLoad) { localRet = readyModForCnf(pModInfo, &pNew, &pLast); if(pModInfo->setModCnf != NULL && localRet == RS_RET_OK) { - addModToCnfList(pNew, pLast); if(!strncmp((char*)pModName, "builtin:", sizeof("builtin:")-1)) { if(pModInfo->bSetModCnfCalled) { errmsg.LogError(0, RS_RET_DUP_PARAM, @@ -1061,6 +1060,11 @@ Load(uchar *pModName, sbool bConfLoad, struct nvlst *lst) pModInfo->setModCnf(lst); pModInfo->bSetModCnfCalled = 1; } + } else { + /* regular modules need to be added to conf list (for + * builtins, this happend during initial load). + */ + addModToCnfList(pNew, pLast); } } } |