[Pkg-gnupg-commit] [gnupg2] 64/241: dirmngr: Better handle systems without IPv6 or IPv4.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Dec 9 20:31:55 UTC 2015


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

dkg pushed a commit to branch master
in repository gnupg2.

commit 0e3c9f184a5fb3e41277700d690febc2eee9600a
Author: Werner Koch <wk at gnupg.org>
Date:   Sat Oct 24 16:27:47 2015 +0200

    dirmngr: Better handle systems without IPv6 or IPv4.
    
    * dirmngr/dns-stuff.c (resolve_name_standard): Use AI_ADDRCONFIG.
---
 dirmngr/dns-stuff.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dirmngr/dns-stuff.c b/dirmngr/dns-stuff.c
index dc5cb89..d784ccf 100644
--- a/dirmngr/dns-stuff.c
+++ b/dirmngr/dns-stuff.c
@@ -146,8 +146,9 @@ resolve_name_standard (const char *name, unsigned short port,
   memset (&hints, 0, sizeof hints);
   hints.ai_family = want_family;
   hints.ai_socktype = want_socktype;
+  hints.ai_flags = AI_ADDRCONFIG;
   if (r_canonname)
-    hints.ai_flags = AI_CANONNAME;
+    hints.ai_flags |= AI_CANONNAME;
 
   if (port)
     snprintf (portstr, sizeof portstr, "%hu", port);

-- 
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