diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | runtime/net.c | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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)); |