diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2016-10-27 07:49:17 +0200 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2016-10-27 07:49:17 +0200 |
commit | 8a9341b42cd1891090d45cc068bff84b2b3edb50 (patch) | |
tree | f17b16e18d07a6aa0ed4aee0e1f3a2ca1bbf904a /dirmngr/dns-stuff.c | |
parent | g10: Fix ECDH, clarifying the format. (diff) | |
download | gnupg2-8a9341b42cd1891090d45cc068bff84b2b3edb50.tar.xz gnupg2-8a9341b42cd1891090d45cc068bff84b2b3edb50.zip |
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@fsij.org>
Diffstat (limited to '')
-rw-r--r-- | dirmngr/dns-stuff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dirmngr/dns-stuff.c b/dirmngr/dns-stuff.c index ac295b0cc..284ef0946 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; } |