summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorLuis Fernando Muñoz Mejías <Luis.Fernando.Munoz.Mejias@cern.ch>2009-04-07 11:15:52 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-04-07 15:18:09 +0200
commit13344f4928654fc33cc37406164a4a56d22fff93 (patch)
tree4d35cafc998d0e12c889a550327e5ae106f05d71 /tools
parentd30388a499ed134b7f0b64180d03d5c7959f2fe4 (diff)
downloadrsyslog-13344f4928654fc33cc37406164a4a56d22fff93.tar.gz
rsyslog-13344f4928654fc33cc37406164a4a56d22fff93.tar.xz
rsyslog-13344f4928654fc33cc37406164a4a56d22fff93.zip
Re-enable parsing host names from message.
There was a subtle bug that made all messages fill their HOSTNAME from the source IP (which may be wrong in a long chain of relays) and not by reading the message. This fixes it.
Diffstat (limited to 'tools')
-rw-r--r--tools/syslogd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/syslogd.c b/tools/syslogd.c
index b23c12a7..a40b34dd 100644
--- a/tools/syslogd.c
+++ b/tools/syslogd.c
@@ -1496,7 +1496,7 @@ int parseLegacySyslogMsg(msg_t *pMsg, int flags)
* the fields. I think this logic shall work with any type of syslog message.
*/
bTAGCharDetected = 0;
- if(pMsg->bParseHOSTNAME) {
+ if(flags & PARSE_HOSTNAME) {
/* TODO: quick and dirty memory allocation */
/* the memory allocated is far too much in most cases. But on the plus side,
* it is quite fast... - rgerhards, 2007-09-20