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 committed by Werner Koch
parent 178c3fe62c
commit a17584d000
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -1197,7 +1197,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;