diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-01-26 22:30:55 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-01-26 22:30:55 +0100 |
commit | ead2c355e3261f98817ccd52bc3644103140e824 (patch) | |
tree | 73841ae761e6719898a8afaa539b0f91cc8d90d0 /runtime/msg.h | |
parent | d5360aa57436bb931c513677bc2cbdb1733a4c6b (diff) | |
download | rsyslog-ead2c355e3261f98817ccd52bc3644103140e824.tar.gz rsyslog-ead2c355e3261f98817ccd52bc3644103140e824.tar.xz rsyslog-ead2c355e3261f98817ccd52bc3644103140e824.zip |
bugfix: unitialized mutex was used in msg.c:getPRI
This was subtle, because getPRI is called as part of the debugging code
(always executed) in syslogd.c:logmsg.
Diffstat (limited to 'runtime/msg.h')
-rw-r--r-- | runtime/msg.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/msg.h b/runtime/msg.h index d98111a8..c8350626 100644 --- a/runtime/msg.h +++ b/runtime/msg.h @@ -51,6 +51,7 @@ struct msg { BEGINobjInstance; /* Data to implement generic object - MUST be the first data element! */ pthread_mutexattr_t mutAttr; +short bDoLock; /* use the mutex? */ pthread_mutex_t mut; flowControl_t flowCtlType; /**< type of flow control we can apply, for enqueueing, needs not to be persisted because once data has entered the queue, this property is no longer needed. */ |