diff --git a/CHANGES b/CHANGES index a8b82e3de5..61d9006f04 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +3254. [bug] Set isc_socket_ipv6only() on the IPv6 control channels. + [RT #22249] + 3253. [bug] Return DNS_R_SYNTAX when the input to a text field is too long. [RT #26956] diff --git a/bin/named/controlconf.c b/bin/named/controlconf.c index b24453310f..964561a69b 100644 --- a/bin/named/controlconf.c +++ b/bin/named/controlconf.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: controlconf.c,v 1.62 2011/03/12 04:59:46 tbox Exp $ */ +/* $Id: controlconf.c,v 1.63 2011/12/22 08:07:48 marka Exp $ */ /*! \file */ @@ -1148,6 +1148,11 @@ add_listener(ns_controls_t *cp, controllistener_t **listenerp, if (result == ISC_R_SUCCESS) isc_socket_setname(listener->sock, "control", NULL); +#ifndef ISC_ALLOW_MAPPED + if (result == ISC_R_SUCCESS) + isc_socket_ipv6only(listener->sock, ISC_TRUE); +#endif + if (result == ISC_R_SUCCESS) result = isc_socket_bind(listener->sock, &listener->address, ISC_SOCKET_REUSEADDRESS);