projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5918e1d
)
add comment
author
Ken Raeburn
<raeburn@mit.edu>
Fri, 31 Aug 2001 03:22:00 +0000
(
03:22
+0000)
committer
Ken Raeburn
<raeburn@mit.edu>
Fri, 31 Aug 2001 03:22:00 +0000
(
03:22
+0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13705
dc483132
-0cff-0310-8789-
dd5450dbe970
src/util/pty/sane_hostname.c
patch
|
blob
|
history
diff --git
a/src/util/pty/sane_hostname.c
b/src/util/pty/sane_hostname.c
index 91a8ff422db94ab0244f89312c2f21de02fb9b26..f1ce3362da99e014e64524241f5e7df7686830f9 100644
(file)
--- 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 */