[Pkg-gnupg-commit] [gnupg2] 175/292: dirmngr: Fix error return for ADNS.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Mon Nov 21 06:31:39 UTC 2016


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

dkg pushed a commit to branch master
in repository gnupg2.

commit 8a9341b42cd1891090d45cc068bff84b2b3edb50
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Thu Oct 27 14:49:17 2016 +0900

    dirmngr: Fix error return for ADNS.
    
    * dirmngr/dns-stuff.c (resolve_name_adns): Use RET for return value.
    
    --
    There are cases where libadns returns an error without setting the
    variable ERRNO.
    
    GnuPG-bug-id: 2745
    Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>
---
 dirmngr/dns-stuff.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dirmngr/dns-stuff.c b/dirmngr/dns-stuff.c
index ac295b0..284ef09 100644
--- a/dirmngr/dns-stuff.c
+++ b/dirmngr/dns-stuff.c
@@ -278,7 +278,7 @@ resolve_name_adns (const char *name, unsigned short port,
   my_protect ();
   if (ret)
     {
-      err = gpg_error_from_syserror ();
+      err = ret;
       log_error ("DNS query failed: %s\n", gpg_strerror (err));
       goto leave;
     }

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