dirmngr: Fix bugs in the standard resolver code.
authorWerner Koch <wk@gnupg.org>
Wed, 14 Dec 2016 09:30:29 +0000 (10:30 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 14 Dec 2016 14:57:16 +0000 (15:57 +0100)
commit4a030f682ef48542ed324b28207f2c2b4847dbef
tree3bb0bfd58e4442d476f9453311516a09865e09ba
parent392966aed9b2a5e1456c671e5d13b561a27e4bb2
dirmngr: Fix bugs in the standard resolver code.

* dirmngr/dns-stuff.c: Include dirmngr-err.h to set the correct error
source.
(get_h_errno_as_gpg_error): New.
(get_dns_cert_libdns): Fix error code.
(getsrv_libdns): Add arg R_COUNT and return an error code.
(getsrv_standard): Ditto.  Fix handling of res_query errors and
provide the correct size for the return buffer.
(getsrv): Adjust for changed worker functions.
(get_dns_cname_standard): Fix handling of res_query errors and provide
the correct size for the return buffer.

Signed-off-by: Werner Koch <wk@gnupg.org>
dirmngr/dns-stuff.c