summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>2001-01-13 00:55:07 +0000
committerTom Yu <tlyu@mit.edu>2001-01-13 00:55:07 +0000
commitfb96a449d412e7d1a0dbd38bb50e7f26c041f7b5 (patch)
treef0755fd180594e68f260c49a38ca2f83bc78c90f /src
parent635a6166653fba89e62739f84e966c402213ad1d (diff)
downloadkrb5-fb96a449d412e7d1a0dbd38bb50e7f26c041f7b5.tar.gz
krb5-fb96a449d412e7d1a0dbd38bb50e7f26c041f7b5.tar.xz
krb5-fb96a449d412e7d1a0dbd38bb50e7f26c041f7b5.zip
* sane_hostname.c: Switch off of KRB5_USE_INET6 instead of
AF_INET6, which may be defined without a corresponding struct sockaddr_in6. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12901 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/util/pty/ChangeLog6
-rw-r--r--src/util/pty/sane_hostname.c5
2 files changed, 9 insertions, 2 deletions
diff --git a/src/util/pty/ChangeLog b/src/util/pty/ChangeLog
index 903e7bb30d..a68dffa279 100644
--- a/src/util/pty/ChangeLog
+++ b/src/util/pty/ChangeLog
@@ -1,3 +1,9 @@
+2001-01-12 Tom Yu <tlyu@mit.edu>
+
+ * sane_hostname.c: Switch off of KRB5_USE_INET6 instead of
+ AF_INET6, which may be defined without a corresponding struct
+ sockaddr_in6.
+
2000-12-06 Ken Raeburn <raeburn@mit.edu>
* sane_hostname.c (pty_make_sane_hostname, do_ntoa): Pass address
diff --git a/src/util/pty/sane_hostname.c b/src/util/pty/sane_hostname.c
index 692e6e81a1..d7512fa55b 100644
--- a/src/util/pty/sane_hostname.c
+++ b/src/util/pty/sane_hostname.c
@@ -2,7 +2,8 @@
* pty_make_sane_hostname: Make a sane hostname from an IP address.
* This returns allocated memory!
*
- * Copyright 1999,2000 by the Massachusetts Institute of Technology.
+ * Copyright 1999, 2000, 2001 by the Massachusetts Institute of
+ * Technology.
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose and without fee is hereby
@@ -33,7 +34,7 @@ sockaddrlen (const struct sockaddr *addr)
#else
if (addr->sa_family == AF_INET)
return sizeof (struct sockaddr_in);
-#ifdef AF_INET6
+#ifdef KRB5_USE_INET6
if (addr->sa_family == AF_INET6)
return sizeof (struct sockaddr_in6);
#endif