diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/util/pty/sane_hostname.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/pty/sane_hostname.c b/src/util/pty/sane_hostname.c index 91a8ff422..f1ce3362d 100644 --- a/src/util/pty/sane_hostname.c +++ b/src/util/pty/sane_hostname.c @@ -52,6 +52,11 @@ pty_make_sane_hostname(const struct sockaddr *addr, int maxlen, char lhost[MAXHOSTNAMELEN]; size_t ut_host_len; + /* Note that on some systems (e.g., AIX 4.3.3), we may get an IPv6 + address such as ::FFFF:18.18.1.71 when an IPv4 connection comes + in. That's okay; at least on AIX, getnameinfo will deal with + that properly. */ + *out = NULL; if (maxlen && maxlen < 16) /* assume they meant 16, otherwise IPv4 addr won't fit */ |
