summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorCorey Smith <corsmith@gmail.com>2011-03-24 17:25:03 +0100
committerroot <root@localhost.localdomain>2011-03-24 17:25:03 +0100
commiteefc9b6eb69c130015955cfb15dc45e36e431d5a (patch)
treee81e1a0fd831eb7f9f34f80aa0d2ec749fddbcf0 /runtime
parente69efbb6d7907339ef81a2062f858eb082233f61 (diff)
downloadrsyslog-eefc9b6eb69c130015955cfb15dc45e36e431d5a.tar.gz
rsyslog-eefc9b6eb69c130015955cfb15dc45e36e431d5a.tar.xz
rsyslog-eefc9b6eb69c130015955cfb15dc45e36e431d5a.zip
bugfix: PRI was invalid on Solaris for message from local log socket
Signed-off-by: root <root@localhost.localdomain>
Diffstat (limited to 'runtime')
-rw-r--r--runtime/parser.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/parser.c b/runtime/parser.c
index d3644976..b385c54b 100644
--- a/runtime/parser.c
+++ b/runtime/parser.c
@@ -453,10 +453,10 @@ ParsePRI(msg_t *pMsg)
if(pri & ~(LOG_FACMASK|LOG_PRIMASK))
pri = DEFUPRI;
}
+ pMsg->iFacility = LOG_FAC(pri);
+ pMsg->iSeverity = LOG_PRI(pri);
+ MsgSetAfterPRIOffs(pMsg, msg - pMsg->pszRawMsg);
}
- pMsg->iFacility = LOG_FAC(pri);
- pMsg->iSeverity = LOG_PRI(pri);
- MsgSetAfterPRIOffs(pMsg, msg - pMsg->pszRawMsg);
RETiRet;
}