mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
dirmngr: Fix handling of CNAMEed keyserver pools.
* dirmngr/ks-engine-hkp.c (map_host): Don't use the cname for HTTPHOST. * dirmngr/server.c (make_keyserver_item): Map keys.gnupg.net. -- For a description of the problem see the comment in make_keyserver_item. GnuPG-bug-id: 3755 Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
bb8894760f
commit
cc66108253
3 changed files with 36 additions and 1 deletions
|
@ -583,7 +583,7 @@ map_host (ctrl_t ctrl, const char *name, const char *srvtag, int force_reselect,
|
|||
/* Deal with the pool name before selecting a host. */
|
||||
if (r_httphost)
|
||||
{
|
||||
*r_httphost = xtrystrdup (hi->cname? hi->cname : hi->name);
|
||||
*r_httphost = xtrystrdup (hi->name);
|
||||
if (!*r_httphost)
|
||||
return gpg_error_from_syserror ();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue