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:
parent
178c3fe62c
commit
a17584d000
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user