From 76877065f6897ef5cd68d524a321f9d9ebb82ef3 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Wed, 21 May 2008 17:37:58 +0200 Subject: bugfix: sender information (fromhost et al) was missing in imudp thanks to sandiso for reporting this bug --- ChangeLog | 2 ++ runtime/net.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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)); -- cgit