[krbdev.mit.edu #6857] missing ifdefs around IPv6 code
Arlene Berry via RT
rt-comment at krbdev.mit.edu
Tue Feb 8 21:06:49 EST 2011
There are a couple of missing ifdefs around IPv6 code.
Index: src/kadmin/server/schpw.c
===================================================================
--- src/kadmin/server/schpw.c (revision 24618)
+++ src/kadmin/server/schpw.c (working copy)
@@ -271,6 +271,7 @@
salen = sizeof(*sin);
break;
}
+#ifdef KRB5_USE_INET6
case ADDRTYPE_INET6: {
struct sockaddr_in6 *sin6 = ss2sin6(&ss);
@@ -280,6 +281,7 @@
salen = sizeof(*sin6);
break;
}
+#endif
default: {
struct sockaddr *sa = ss2sa(&ss);
Index: src/lib/krb5/os/localaddr.c
===================================================================
--- src/lib/krb5/os/localaddr.c (revision 24618)
+++ src/lib/krb5/os/localaddr.c (working copy)
@@ -183,10 +183,12 @@
struct sockaddr_in *s4 = (struct sockaddr_in *)sa;
return s4->sin_addr.s_addr == htonl(INADDR_LOOPBACK);
}
+#ifdef KRB5_USE_INET6
case AF_INET6: {
struct sockaddr_in6 *s6 = (struct sockaddr_in6 *)sa;
return IN6_IS_ADDR_LOOPBACK(&s6->sin6_addr);
}
+#endif
default:
return 0;
}
More information about the krb5-bugs
mailing list