diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-06-06 13:04:40 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-06-06 13:04:40 +0200 |
commit | ff7b1382fa191a176175aba9b0ad308931b6301a (patch) | |
tree | c41ab5cc99f33e9f1bc002763a646714ed3d9be7 | |
parent | 290f41f9470d06e4f207ca38c3175c578f6202ec (diff) | |
download | rsyslog-ff7b1382fa191a176175aba9b0ad308931b6301a.tar.gz rsyslog-ff7b1382fa191a176175aba9b0ad308931b6301a.tar.xz rsyslog-ff7b1382fa191a176175aba9b0ad308931b6301a.zip |
bugfix: property PROCID was empty instead of proper nilvalue if not present
If it is not present, it must have the nilvalue "-" as of RFC5424
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=332
Thanks to John N for reporting this issue.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | runtime/msg.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -36,6 +36,10 @@ Version 5.8.12 [V5-stable] 2012-05-?? closes: http://bugzilla.adiscon.com/show_bug.cgi?id=316 Thanks to Andreas Piesk for reporting&analyzing this bug as well as providing patches and other help in resolving it. +- bugfix: property PROCID empty instead of proper nilvalue if not present + If it is not present, it must have the nilvalue "-" as of RFC5424 + closes: http://bugzilla.adiscon.com/show_bug.cgi?id=332 + Thanks to John N for reporting this issue. --------------------------------------------------------------------------- Version 5.8.11 [V5-stable] 2012-05-03 - bugfix: ommysql did not properly init/exit the mysql runtime library diff --git a/runtime/msg.c b/runtime/msg.c index 7b94228c..820a28a8 100644 --- a/runtime/msg.c +++ b/runtime/msg.c @@ -1618,7 +1618,7 @@ char *getPROCID(msg_t *pM, sbool bLockMutex) MsgLock(pM); preparePROCID(pM, MUTEX_ALREADY_LOCKED); if(pM->pCSPROCID == NULL) - pszRet = UCHAR_CONSTANT(""); + pszRet = UCHAR_CONSTANT("-"); else pszRet = rsCStrGetSzStrNoNULL(pM->pCSPROCID); if(bLockMutex == LOCK_MUTEX) |