summaryrefslogtreecommitdiffstats
path: root/dirmngr
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2018-06-14 06:01:45 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2018-06-14 06:01:45 +0200
commit5b40338f12762cd74238c2d2b3101c33dd2d0ed3 (patch)
tree8b7b17f1b80869012875937891a45f43b646a21e /dirmngr
parentSome preparations to eventuallt use gpgrt_argparse. (diff)
downloadgnupg2-5b40338f12762cd74238c2d2b3101c33dd2d0ed3.tar.xz
gnupg2-5b40338f12762cd74238c2d2b3101c33dd2d0ed3.zip
dirmngr: Fix recursive resolver mode.
* dirmngr/dns-stuff.c (libdns_init): Initialize options.recurse. -- To reproduce an error, run: ./t-dns-stuff --debug --recursive-resolver www.gnupg.org Then, it returns "No name" error. That's because there was only setup for root servers, and no setup for recursive query in fact. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'dirmngr')
-rw-r--r--dirmngr/dns-stuff.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dirmngr/dns-stuff.c b/dirmngr/dns-stuff.c
index 7324aae46..ffac816f9 100644
--- a/dirmngr/dns-stuff.c
+++ b/dirmngr/dns-stuff.c
@@ -612,6 +612,8 @@ libdns_init (void)
}
}
+ ld.resolv_conf->options.recurse = recursive_resolver_p ();
+
/* dns_hints_local for stub mode, dns_hints_root for recursive. */
ld.hints = (recursive_resolver
? dns_hints_root (ld.resolv_conf, &derr)