]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Get rid of copying of local resolver nameservers to the active resolver in securetrace.
authorWillem Toorop <willem@NLnetLabs.nl>
Wed, 18 May 2011 12:44:09 +0000 (12:44 +0000)
committerWillem Toorop <willem@NLnetLabs.nl>
Wed, 18 May 2011 12:44:09 +0000 (12:44 +0000)
It might be worthwhile to query "." if no root-servers are available, but this is not the place or way to address that.

drill/securetrace.c

index ecc21fdf49e1b6520251b72e5c6881c0bed6de69..c08b040fbc2f067b3c5919a0de4fde25ac08e476 100644 (file)
@@ -263,11 +263,6 @@ do_secure_trace(ldns_resolver *local_res, ldns_rdf *name, ldns_rr_type t,
        for(i = 2 ; i < (ssize_t)labels_count + 2; i++) {
                labels[i] = ldns_dname_left_chop(labels[i - 1]);
        }
-       /* if no servers is given with @, start by asking local resolver */
-       /* first part todo :) */
-       for (i = 0; i < (ssize_t) ldns_resolver_nameserver_count(local_res); i++) {
-               (void) ldns_resolver_push_nameserver(res, ldns_resolver_nameservers(local_res)[i]);
-       }
 
        /* get the nameserver for the label
         * ask: dnskey and ds for the label