From: Ken Raeburn Date: Mon, 18 Oct 1999 05:18:56 +0000 (+0000) Subject: * localaddr.c (krb5_os_localaddr): Don't bother trying to create inet6 socket; any... X-Git-Tag: krb5-1.2-beta1~209 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6a7116e9d55a4eaefc8387ce9510e621cca0f01e;p=krb5.git * localaddr.c (krb5_os_localaddr): Don't bother trying to create inet6 socket; any socket type will do git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11866 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index 118c17afd..0f4d8c3e8 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,4 +1,9 @@ -1999-10-17 Ken Raeburn +1999-10-18 Ken Raeburn + + * localaddr.c (krb5_os_localaddr): Don't bother trying to create + inet6 socket; any socket type will do. + +1999-10-17 Ken Raeburn * localaddr.c (krb5_os_localaddr): Raise buffer size to 10K. Handle INET6 addresses. If INET6 support is built in but the diff --git a/src/lib/krb5/os/localaddr.c b/src/lib/krb5/os/localaddr.c index 6a9acdc4e..a73ba2533 100644 --- a/src/lib/krb5/os/localaddr.c +++ b/src/lib/krb5/os/localaddr.c @@ -54,12 +54,7 @@ #include #ifndef USE_AF -#ifdef AF_INET6 -#define USE_AF AF_INET6 -#define USE_AF2 AF_INET -#else #define USE_AF AF_INET -#endif #define USE_TYPE SOCK_DGRAM #define USE_PROTO 0 #endif @@ -130,10 +125,6 @@ krb5_os_localaddr(context, addr) ifc.ifc_buf = buf; s = socket (USE_AF, USE_TYPE, USE_PROTO); -#if defined (USE_AF2) && defined (EPROTONOSUPPORT) - if (s < 0 && SOCKET_ERRNO == EPROTONOSUPPORT) - s = socket (USE_AF2, USE_TYPE, USE_PROTO); -#endif if (s < 0) return SOCKET_ERRNO;