diff options
author | Corey Smith <corsmith@gmail.com> | 2011-03-24 17:25:03 +0100 |
---|---|---|
committer | root <root@localhost.localdomain> | 2011-03-24 17:25:03 +0100 |
commit | eefc9b6eb69c130015955cfb15dc45e36e431d5a (patch) | |
tree | e81e1a0fd831eb7f9f34f80aa0d2ec749fddbcf0 /runtime | |
parent | e69efbb6d7907339ef81a2062f858eb082233f61 (diff) | |
download | rsyslog-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.c | 6 |
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; } |