chiark / gitweb /
dirmngr: Fix error handling.
authorJustus Winter <justus@g10code.com>
Tue, 21 Mar 2017 13:22:13 +0000 (14:22 +0100)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 18 Sep 2017 20:41:12 +0000 (21:41 +0100)
* dirmngr/dns-stuff.c (libdns_init): Convert error before printing it.

Signed-off-by: Justus Winter <justus@g10code.com>
(cherry picked from commit 483c1288a8f86dc6bf93d0d3f2865ecc246aecba)

Gbp-Pq: Name 0054-dirmngr-Fix-error-handling.patch

dirmngr/dns-stuff.c

index 35e6c8240544312d4a3105d6157faf436f314ce6..c79a9c7f4148f543202e8f8d22feb524cb782155 100644 (file)
@@ -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;
     }