Home GnuPG
Diffusion GnuPG 1e3dbb15affd

dirmngr: Fix specifying keyservers by IP address.
1e3dbb15affdUnpublished

Unpublished Commit ยท Learn More

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

Description

dirmngr: Fix specifying keyservers by IP address.

* dirmngr/ks-engine-hkp.c (map_host): Update the original 'hosttable'
entry instead of creating another one.

Previously, if a keyserver was given using its IP address
(e.g. 'hkp://127.0.0.1'), 'map_host' would create two entries in the
'hosttable', one with the name '127.0.0.1', and the second one with
the name 'localhost' and 'v4addr' being set to '127.0.0.1'. But the
first entry is the one being used for lookups, and since the 'v4' flag
is not set, the 'HTTP_FLAG_IGNORE_IPv4' is used when doing the http
request, making it fail.

  • Signed-off-by: Justus Winter <justus@g10code.com>
  • GnuPG-bug-id: T2012

Details

Provenance
justusAuthored on Nov 16 2015, 6:18 PM
Parents
rG58e4a492e2c8: gpg: Change keydb_search to not return legacy keys.
Branches
Unknown
Tags
Unknown

Event Timeline

Justus Winter <justus@g10code.com> committed rG1e3dbb15affd: dirmngr: Fix specifying keyservers by IP address. (authored by Justus Winter <justus@g10code.com>).Nov 17 2015, 4:09 PM
justus mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:08 PM
justus mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:31 PM