[Pkg-gnupg-commit] [gnupg2] 29/116: dirmngr: New debug message on correctly initialized libdns.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Tue Jan 24 04:40:51 UTC 2017


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gnupg2.

commit 0004d52ba2f1245c84f95a151342ad99fd72ca3d
Author: Werner Koch <wk at gnupg.org>
Date:   Mon Jan 2 15:47:24 2017 +0100

    dirmngr: New debug message on correctly initialized libdns.
    
    * dirmngr/dns-stuff.c (libdns_init): Add debug level diagnostic on
    success.
    --
    
    This output may help to avoid questions when evaluating an Assuan log.
    
    Signed-off-by: Werner Koch <wk at gnupg.org>
---
 dirmngr/dns-stuff.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dirmngr/dns-stuff.c b/dirmngr/dns-stuff.c
index f2e1df9..cf8cefb 100644
--- a/dirmngr/dns-stuff.c
+++ b/dirmngr/dns-stuff.c
@@ -507,6 +507,9 @@ libdns_init (void)
   /* All fine.  Make the data global.  */
   libdns = ld;
 
+  if (opt_debug)
+    log_debug ("dns: libdns initialized%s\n", tor_mode?" (tor mode)":"");
+
  leave:
   xfree (cfgstr);
   return err;
@@ -595,7 +598,7 @@ libdns_res_open (struct dns_resolver **r_res)
 
 
 #ifdef USE_LIBDNS
-/* Helper to test whether we need totry again after having swicthed
+/* Helper to test whether we need to try again after having switched
  * the Tor port.  */
 static int
 libdns_switch_port_p (gpg_error_t err)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list