summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-05-21 17:37:58 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-05-21 17:37:58 +0200
commit76877065f6897ef5cd68d524a321f9d9ebb82ef3 (patch)
tree724663f6665eb99b183ed60a232634b66e7ffb68
parentd25586126f5202e91a637b6f4aa89dd4b88b6e9e (diff)
downloadrsyslog-76877065f6897ef5cd68d524a321f9d9ebb82ef3.tar.gz
rsyslog-76877065f6897ef5cd68d524a321f9d9ebb82ef3.tar.xz
rsyslog-76877065f6897ef5cd68d524a321f9d9ebb82ef3.zip
bugfix: sender information (fromhost et al) was missing in imudp
thanks to sandiso for reporting this bug
-rw-r--r--ChangeLog2
-rw-r--r--runtime/net.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b4ba1715..8ecf4f53 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
---------------------------------------------------------------------------
Version 3.19.4 (rgerhards), 2008-05-??
+- bugfix: sender information (fromhost et al) was missing in imudp
+ thanks to sandiso for reporting this bug
---------------------------------------------------------------------------
Version 3.19.3 (rgerhards), 2008-05-21
- added ability to authenticate the server against its certificate
diff --git a/runtime/net.c b/runtime/net.c
index cbff1003..09b036e8 100644
--- a/runtime/net.c
+++ b/runtime/net.c
@@ -710,7 +710,7 @@ gethname(struct sockaddr_storage *f, uchar *pszHostFQDN, uchar *ip)
assert(pszHostFQDN != NULL);
error = getnameinfo((struct sockaddr *)f, SALEN((struct sockaddr *)f),
- (char*) ip, sizeof ip, NULL, 0, NI_NUMERICHOST);
+ (char*) ip, NI_MAXHOST, NULL, 0, NI_NUMERICHOST);
if (error) {
dbgprintf("Malformed from address %s\n", gai_strerror(error));