summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-11-14 12:42:55 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2013-11-14 12:42:55 +0100
commit8b6b12199385e6fbf4cf6e452e0e5324b3dcd37d (patch)
treea40d14422f49393e9a500134393edec947a51bb9
parent824b8c5d45771dd27693c33da54db709b8e6207a (diff)
downloadrsyslog-8b6b12199385e6fbf4cf6e452e0e5324b3dcd37d.tar.gz
rsyslog-8b6b12199385e6fbf4cf6e452e0e5324b3dcd37d.tar.bz2
rsyslog-8b6b12199385e6fbf4cf6e452e0e5324b3dcd37d.zip
regression fix: misadressing if worker thread was restarted
-rw-r--r--runtime/wti.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/wti.c b/runtime/wti.c
index 6b5d82c8..a9154670 100644
--- a/runtime/wti.c
+++ b/runtime/wti.c
@@ -355,6 +355,7 @@ dbgprintf("DDDD: wti %p: worker starting\n", pThis);
if(pThis->actWrkrInfo[i].actWrkrData != NULL) {
dbgprintf("DDDD: calling freeWrkrData!\n");
pThis->actWrkrInfo[i].pAction->pMod->mod.om.freeWrkrInstance(pThis->actWrkrInfo[i].actWrkrData);
+ pThis->actWrkrInfo[i].actWrkrData = NULL; /* re-init for next activation */
}
}