summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-08-20 14:18:41 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-08-20 14:18:41 +0200
commit73b73fe5c31bcaf9052d9bbb13f38ff3a13fd22d (patch)
tree7171e95a1af50342a3852d204889ee5033c15c28 /tools
parentc7f746d8349b395b95b3aa70eb395afb07b9c4c7 (diff)
downloadrsyslog-73b73fe5c31bcaf9052d9bbb13f38ff3a13fd22d.tar.gz
rsyslog-73b73fe5c31bcaf9052d9bbb13f38ff3a13fd22d.tar.xz
rsyslog-73b73fe5c31bcaf9052d9bbb13f38ff3a13fd22d.zip
bugfix: hostnames with dashes in them were incorrectly treated as malformed
... thus causing them to be treated as TAG (this was a regression introduced from the "rfc3164 strict" change in 4.5.0). Testbench has been updated to include a smaple message with a hostname containing a dash.
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 40e9e92c..ff671138 100644
--- a/tools/syslogd.c
+++ b/tools/syslogd.c
@@ -1225,7 +1225,7 @@ int parseLegacySyslogMsg(msg_t *pMsg, int flags)
if(flags & PARSE_HOSTNAME) {
i = 0;
while((isalnum(p2parse[i]) || p2parse[i] == '.' || p2parse[i] == '.'
- || p2parse[i] == '_') && i < CONF_TAG_MAXSIZE) {
+ || p2parse[i] == '_' || p2parse[i] == '-') && i < CONF_TAG_MAXSIZE) {
bufParseHOSTNAME[i] = p2parse[i];
++i;
}