Blame SOURCES/xinetd-2.3.14-ipv6confusion.patch

01101d
--- xinetd-2.3.14/xinetd/ident.c.jw	2010-03-10 17:49:53.000000000 +1100
01101d
+++ xinetd-2.3.14/xinetd/ident.c	2010-03-10 17:50:30.000000000 +1100
01101d
@@ -108,12 +108,12 @@
01101d
    memcpy( &sin_bind, &sin_local, sizeof(sin_bind) ) ;
01101d
    local_port = 0;
01101d
    remote_port = 0;
01101d
-   if( sin_remote.sa.sa_family == AF_INET ) {
01101d
+   if( sin_remote.sa.sa_family == AF_INET6 ) {
01101d
       local_port = ntohs( sin_local.sa_in6.sin6_port ) ;
01101d
       remote_port = ntohs( sin_remote.sa_in6.sin6_port ) ;
01101d
       sin_contact.sa_in6.sin6_port = htons( IDENTITY_SERVICE_PORT ) ;
01101d
       sin_bind.sa_in.sin_port = 0 ;
01101d
-   } else if( sin_remote.sa.sa_family == AF_INET6 ) {
01101d
+   } else if( sin_remote.sa.sa_family == AF_INET ) {
01101d
       local_port = ntohs( sin_local.sa_in.sin_port ) ;
01101d
       remote_port = ntohs( sin_remote.sa_in.sin_port ) ;
01101d
       sin_contact.sa_in.sin_port = htons( IDENTITY_SERVICE_PORT ) ;