aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/dns-stuff.c
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2017-03-21 13:22:13 +0000
committerJustus Winter <[email protected]>2017-03-21 13:22:13 +0000
commit483c1288a8f86dc6bf93d0d3f2865ecc246aecba (patch)
tree1b94cbc0952f0b4bc3eafa365757b8c9889803bb /dirmngr/dns-stuff.c
parentdirmngr: Load the hosts file into libdns. (diff)
downloadgnupg-483c1288a8f86dc6bf93d0d3f2865ecc246aecba.tar.gz
gnupg-483c1288a8f86dc6bf93d0d3f2865ecc246aecba.zip
dirmngr: Fix error handling.
* dirmngr/dns-stuff.c (libdns_init): Convert error before printing it. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'dirmngr/dns-stuff.c')
-rw-r--r--dirmngr/dns-stuff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dirmngr/dns-stuff.c b/dirmngr/dns-stuff.c
index 78c70e139..1a8091369 100644
--- a/dirmngr/dns-stuff.c
+++ b/dirmngr/dns-stuff.c
@@ -568,8 +568,8 @@ libdns_init (void)
: dns_hints_local (ld.resolv_conf, &derr));
if (!ld.hints)
{
- log_error ("failed to load DNS hints: %s\n", gpg_strerror (err));
err = libdns_error_to_gpg_error (derr);
+ log_error ("failed to load DNS hints: %s\n", gpg_strerror (err));
goto leave;
}