summaryrefslogtreecommitdiffstats
path: root/runtime/msg.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-06-06 13:04:40 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-06-06 13:04:40 +0200
commitff7b1382fa191a176175aba9b0ad308931b6301a (patch)
treec41ab5cc99f33e9f1bc002763a646714ed3d9be7 /runtime/msg.c
parent290f41f9470d06e4f207ca38c3175c578f6202ec (diff)
downloadrsyslog-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.
Diffstat (limited to 'runtime/msg.c')
-rw-r--r--runtime/msg.c2
1 files changed, 1 insertions, 1 deletions
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)