summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-07-30 09:47:47 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-07-30 09:47:47 +0200
commitfeeb622c4e0c622559df803f8df6da39bf3015e7 (patch)
treec0d6b9b9355380b989f16a6a5431e6106263c063 /runtime
parent9821ef26fb2a50e16f7f46f503b42bed4f9bb143 (diff)
downloadrsyslog-feeb622c4e0c622559df803f8df6da39bf3015e7.tar.gz
rsyslog-feeb622c4e0c622559df803f8df6da39bf3015e7.tar.xz
rsyslog-feeb622c4e0c622559df803f8df6da39bf3015e7.zip
bugfix: discard action caused segfault
Diffstat (limited to 'runtime')
-rw-r--r--runtime/modules.c8
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;