From: Ezra Peisach Date: Fri, 3 Jan 2003 16:18:20 +0000 (+0000) Subject: * compat_recv.c (accept_a_connection): Test if IPv6 socket returns X-Git-Tag: krb5-1.3-alpha1~195 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d88ee5d0f84679bc05e28c6e3a80cfb57a947210;p=krb5.git * compat_recv.c (accept_a_connection): Test if IPv6 socket returns EAFNOSUPPORT as well as EPROTONOSUPPORT. Irix 6.5.16m returns the former. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15079 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index 9eba96dc4..202ae14ef 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,3 +1,9 @@ +2003-01-03 Ezra Peisach + + * compat_recv.c (accept_a_connection): Test if IPv6 socket returns + EAFNOSUPPORT as well as EPROTONOSUPPORT. Irix 6.5.16m returns the + former. + 2003-01-01 Ken Raeburn * compat_recv.c: Include sys/select.h and port-sockets.h. diff --git a/src/appl/bsd/compat_recv.c b/src/appl/bsd/compat_recv.c index 5450c1c10..29fc2fb7d 100644 --- a/src/appl/bsd/compat_recv.c +++ b/src/appl/bsd/compat_recv.c @@ -475,7 +475,7 @@ accept_a_connection (int debug_port, struct sockaddr *from, struct sockaddr_in6 sock_in6; if ((s = socket(AF_INET6, SOCK_STREAM, PF_UNSPEC)) < 0) { - if (errno == EPROTONOSUPPORT) + if ((errno == EPROTONOSUPPORT) || (errno == EAFNOSUPPORT)) goto skip_ipv6; fprintf(stderr, "Error in socket(INET6): %s\n", strerror(errno)); exit(2);