]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
1610. [bug] On dual stack machines "dig -b" failed to set the
authorMark Andrews <marka@isc.org>
Thu, 15 Apr 2004 06:53:18 +0000 (06:53 +0000)
committerMark Andrews <marka@isc.org>
Thu, 15 Apr 2004 06:53:18 +0000 (06:53 +0000)
                        address type to be looked up with "@server".
                        [RT #11069]

CHANGES
bin/dig/dighost.c

diff --git a/CHANGES b/CHANGES
index 6476bb326dc79621f3269f0c0c881afb29c26010..0119aa0cda6cfee5675db4432ef3e5ac7bc6f4c5 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+1610.  [bug]           On dual stack machines "dig -b" failed to set the
+                       address type to be looked up with "@server".
+                       [RT #11069]
 
        --- 9.2.4rc2 released ---
 
index 4189c10bb1404920c9cfb01fac7083f543f967f0..301a4649dc404f39f5e63c4004ce33d4c3821953 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: dighost.c,v 1.221.2.21 2004/04/08 01:25:23 marka Exp $ */
+/* $Id: dighost.c,v 1.221.2.22 2004/04/15 06:53:18 marka Exp $ */
 
 /*
  * Notice to programmers:  Do not use this code as an example of how to
@@ -2521,7 +2521,9 @@ get_address(char *host, in_port_t port, isc_sockaddr_t *sockaddr) {
        } else {
 #ifdef USE_GETADDRINFO
                memset(&hints, 0, sizeof(hints));
-               if (!have_ipv6)
+               if (specified_source)
+                       hints.ai_family = isc_sockaddr_pf(&bind_address);
+               else if (!have_ipv6)
                        hints.ai_family = PF_INET;
                else if (!have_ipv4)
                        hints.ai_family = PF_INET6;