summaryrefslogtreecommitdiffstats
path: root/plugins/omgssapi/omgssapi.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-01-27 22:41:14 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2009-01-27 22:41:14 +0100
commit35673b12c42429786f6229ff9fcef7001a6b21ab (patch)
tree9f753817c379fe121e37fdefe3d39bef7c9714a6 /plugins/omgssapi/omgssapi.c
parent20ff1ed403f05606b68c13e4d5c591c6b8706f86 (diff)
downloadrsyslog-35673b12c42429786f6229ff9fcef7001a6b21ab.tar.gz
rsyslog-35673b12c42429786f6229ff9fcef7001a6b21ab.tar.bz2
rsyslog-35673b12c42429786f6229ff9fcef7001a6b21ab.zip
bugfix: proper message locking on message destruct
It looks like a race was introduced by not locking the message mutex in msgDestruct(). In theory, I thought, the decrement should be atomic, but the whole operation may be reordered. Also it has potential for task switches. If so, that would lead to a too-early destruction and thus a potential double free - exactly what we have seen from time to time. So I think this fix addresses the issue. I have also removed anything that looks like atomic operations are supported in this version - they are not. This was very late added, found to be non-portable and pulled from that release.
Diffstat (limited to 'plugins/omgssapi/omgssapi.c')
0 files changed, 0 insertions, 0 deletions