summaryrefslogtreecommitdiffstats
path: root/syslogd.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-03-22 17:13:55 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-03-22 17:13:55 +0000
commita019fa8caa9b8898d201849d243f9838806265a9 (patch)
tree5b338ddce32801cc4fc07b693241e46605f31472 /syslogd.c
parentc75bd2401298498efffd830dea0441dbb3d353fb (diff)
downloadrsyslog-a019fa8caa9b8898d201849d243f9838806265a9.zip
rsyslog-a019fa8caa9b8898d201849d243f9838806265a9.tar.gz
rsyslog-a019fa8caa9b8898d201849d243f9838806265a9.tar.xz
bugfix: internally generated messages had "FROMHOST" property not set
Diffstat (limited to 'syslogd.c')
-rw-r--r--syslogd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/syslogd.c b/syslogd.c
index 588c5b9..39c0c72 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -902,6 +902,7 @@ logmsgInternal(int pri, char *msg, int flags)
MsgSetUxTradMsg(pMsg, msg);
MsgSetRawMsg(pMsg, msg);
MsgSetHOSTNAME(pMsg, LocalHostName);
+ MsgSetRcvFrom(pMsg, LocalHostName);
MsgSetTAG(pMsg, "rsyslogd:");
pMsg->iFacility = LOG_FAC(pri);
pMsg->iSeverity = LOG_PRI(pri);