Home GnuPG
Diffusion GnuPG 4a030f682ef4

dirmngr: Fix bugs in the standard resolver code.
4a030f682ef4Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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>

Details

Provenance
wernerAuthored on Dec 14 2016, 10:30 AM
Parents
rG392966aed9b2: dirmngr: Require a c99 compiler
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG4a030f682ef4: dirmngr: Fix bugs in the standard resolver code. (authored by Werner Koch <wk@gnupg.org>).Dec 14 2016, 3:57 PM