The krb5 locator should now be correctly able to handle
authorJeremy Allison <jra@samba.org>
Tue, 5 Feb 2008 21:44:22 +0000 (13:44 -0800)
committerJeremy Allison <jra@samba.org>
Tue, 5 Feb 2008 21:44:22 +0000 (13:44 -0800)
IPV6, so (a) use the correct #ifdef (it's HAVE_IPV6, not
HAVE_IPv6) and (b) don't deliberately terminate on an
IPv6 address family.
Jeremy.

source/nsswitch/winbind_krb5_locator.c

index eef57ca2c0d20a378e5325665442f354dc754c30..33a68f0cdc25c603acff94674876b3bccdb1cc36 100644 (file)
@@ -90,7 +90,7 @@ static const char *family_name(int family)
                        return "AF_UNSPEC";
                case AF_INET:
                        return "AF_INET";
-#if defined(HAVE_IPv6)
+#if defined(HAVE_IPV6)
                case AF_INET6:
                        return "AF_INET6";
 #endif
@@ -137,9 +137,9 @@ static int smb_krb5_locator_lookup_sanity_check(enum locate_service_type svc,
                case AF_UNSPEC:
                case AF_INET:
                        break;
-#if defined(HAVE_IPv6)
-               case AF_INET6: /* not yet */
-                       return KRB5_PLUGIN_NO_HANDLE;
+#if defined(HAVE_IPV6)
+               case AF_INET6:
+                       break;
 #endif
                default:
                        return EINVAL;