summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-11-30 12:43:03 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2009-11-30 12:43:03 +0100
commit09a10603ffc1189b332df2042944afb70af5deaf (patch)
treeb67117769bb9952d0c4f042557adcdf3f8e1956a
parent4cc7a7c16c99a41153c6161f8ba200fae9703c99 (diff)
downloadrsyslog-09a10603ffc1189b332df2042944afb70af5deaf.tar.gz
rsyslog-09a10603ffc1189b332df2042944afb70af5deaf.tar.xz
rsyslog-09a10603ffc1189b332df2042944afb70af5deaf.zip
bugfix: hostname accidently set to IP address for some message sources
for example imudp. Thanks to Anton for reporting this bug.
-rw-r--r--ChangeLog2
-rw-r--r--runtime/msg.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e493e857..aeabb305 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,8 @@ Version 4.5.7 [v4-beta] (rgerhards), 2009-11-18
Also improved the doc on the debug system.
- bugfix (kind of): check if TCP connection is still alive if using TLS
Thanks to Jonathan Bond-Caron for the patch.
+- bugfix: hostname accidently set to IP address for some message sources,
+ for example imudp. Thanks to Anton for reporting this bug.
- bugfix [imported from 4.4.3]: $ActionExecOnlyOnceEveryInterval did
not work.
---------------------------------------------------------------------------
diff --git a/runtime/msg.c b/runtime/msg.c
index 208ea77a..b45775b6 100644
--- a/runtime/msg.c
+++ b/runtime/msg.c
@@ -1908,7 +1908,7 @@ rsRetVal MsgSetRcvFromIPStr(msg_t *pThis, uchar *psz, int len, prop_t **ppProp)
assert(pThis != NULL);
CHKiRet(prop.CreateOrReuseStringProp(ppProp, psz, len));
- MsgSetRcvFrom(pThis, *ppProp);
+ MsgSetRcvFromIP(pThis, *ppProp);
finalize_it:
RETiRet;