]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
3254. [bug] Set isc_socket_ipv6only() on the IPv6 control channels.
authorMark Andrews <marka@isc.org>
Thu, 22 Dec 2011 08:07:48 +0000 (08:07 +0000)
committerMark Andrews <marka@isc.org>
Thu, 22 Dec 2011 08:07:48 +0000 (08:07 +0000)
                        [RT #22249]

CHANGES
bin/named/controlconf.c

diff --git a/CHANGES b/CHANGES
index a8b82e3de5b28ff0b9928a9413e6afa2034de891..61d9006f047a20de40b7ecb95294defc059fe3bf 100644 (file)
--- 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]
 
index b24453310fc8114873c6471ceb72d32de785ef7e..964561a69b3bb5ee8f48916ec5d732cf858554fd 100644 (file)
@@ -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);