From: Ken Raeburn Date: Fri, 31 Aug 2001 03:22:00 +0000 (+0000) Subject: add comment X-Git-Tag: krb5-1.3-alpha1~1113 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=17ac8b077eb79e7c8dca333eadaf6dbdae537c90;p=krb5.git add comment git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13705 dc483132-0cff-0310-8789-dd5450dbe970 --- 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 */