1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

gpg: Fix getting key by IPGP.

* g10/call-dirmngr.c (gpg_dirmngr_dns_cert): Check if DATA for key.

--

GnuPG-bug-id: 7288
Reported-by: Wilfried Teiken
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2024-09-11 13:51:16 +09:00
parent d528d0b065
commit 7e321c2c2a
No known key found for this signature in database
GPG Key ID: 640114AF89DE6054

View File

@ -1198,7 +1198,8 @@ gpg_dirmngr_dns_cert (ctrl_t ctrl, const char *name, const char *certtype,
if (err)
goto leave;
if (r_key)
/* Data line returned by dirmngr may be nothing. Check if any. */
if (es_ftell (parm.memfp) != 0 && r_key)
{
es_rewind (parm.memfp);
*r_key = parm.memfp;