]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[master] use cache in delve
authorEvan Hunt <each@isc.org>
Thu, 27 Feb 2014 22:49:01 +0000 (14:49 -0800)
committerEvan Hunt <each@isc.org>
Thu, 27 Feb 2014 22:49:01 +0000 (14:49 -0800)
3763. [bug] delve: Cache DNSSEC records to avoid the need to
re-fetch them when restarting validation. [RT #35476]

CHANGES
bin/delve/delve.c

diff --git a/CHANGES b/CHANGES
index 1e2f62cd3a4498af5002ba74f0879e598dbbd13b..4b1df31c4e65a814307f70bb1601a6ef480477ba 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+3763.  [bug]           delve: Cache DNSSEC records to avoid the need to
+                       re-fetch them when restarting validation. [RT #35476]
+
 3762.  [bug]           Address build problems with --pkcs11-native +
                        --with-openssl with ECDSA support. [RT #35467]
 
index 982d9700ff5697b70d871e28eb92eddc2f0ca7eb..23e5ee8b3ac268c78e2b79c1a09e573f031c2241 100644 (file)
@@ -1525,7 +1525,7 @@ main(int argc, char *argv[]) {
        dns_name_t *query_name, *response_name;
        dns_rdataset_t *rdataset;
        dns_namelist_t namelist;
-       unsigned int resopt;
+       unsigned int resopt, clopt;
        isc_appctx_t *actx = NULL;
        isc_taskmgr_t *taskmgr = NULL;
        isc_socketmgr_t *socketmgr = NULL;
@@ -1572,8 +1572,9 @@ main(int argc, char *argv[]) {
 #endif
 
        /* Create client */
+       clopt = DNS_CLIENTCREATEOPT_USECACHE;
        result = dns_client_createx2(mctx, actx, taskmgr, socketmgr, timermgr,
-                                    0, &client, srcaddr4, srcaddr6);
+                                    clopt, &client, srcaddr4, srcaddr6);
        if (result != ISC_R_SUCCESS) {
                delve_log(ISC_LOG_ERROR, "dns_client_create: %s",
                          isc_result_totext(result));