diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-07-30 09:47:47 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-07-30 09:47:47 +0200 |
commit | feeb622c4e0c622559df803f8df6da39bf3015e7 (patch) | |
tree | c0d6b9b9355380b989f16a6a5431e6106263c063 /runtime/modules.c | |
parent | 9821ef26fb2a50e16f7f46f503b42bed4f9bb143 (diff) | |
download | rsyslog-feeb622c4e0c622559df803f8df6da39bf3015e7.tar.gz rsyslog-feeb622c4e0c622559df803f8df6da39bf3015e7.tar.bz2 rsyslog-feeb622c4e0c622559df803f8df6da39bf3015e7.zip |
bugfix: discard action caused segfault
Diffstat (limited to 'runtime/modules.c')
-rw-r--r-- | runtime/modules.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/runtime/modules.c b/runtime/modules.c index b588909e..eee3b46e 100644 --- a/runtime/modules.c +++ b/runtime/modules.c @@ -466,10 +466,12 @@ doModInit(rsRetVal (*modInit)(int, int*, rsRetVal(**)(), rsRetVal(*)(), modInfo_ ABORT_FINALIZE(localRet); localRet = (*pNew->modQueryEtryPt)((uchar*)"endTransaction", &pNew->mod.om.endTransaction); - if(localRet == RS_RET_MODULE_ENTRY_POINT_NOT_FOUND) - pNew->mod.om.beginTransaction = dummyEndTransaction; - else if(localRet != RS_RET_OK) + if(localRet == RS_RET_MODULE_ENTRY_POINT_NOT_FOUND) { + pNew->mod.om.endTransaction = dummyEndTransaction; + //pNew->mod.om.beginTransaction = dummyEndTransaction; + } else if(localRet != RS_RET_OK) { ABORT_FINALIZE(localRet); + } break; case eMOD_LIB: break; |