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

agent: Fix agent_update_private_key.

* agent/findkey.c (agent_update_private_key): Check FNAME0.

--

Fixes-commit: a216e9c028ee389c4bf0250b822d567ffe9ad85e
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2023-10-04 10:23:30 +09:00
parent f2ca727978
commit 08e529fa7c
No known key found for this signature in database
GPG Key ID: 640114AF89DE6054

View File

@ -333,7 +333,7 @@ agent_update_private_key (const unsigned char *grip, nvc_t pk)
int blocksigs = 0;
fname0 = fname_from_keygrip (grip, 0);
if (!fname)
if (!fname0)
{
err = gpg_error_from_syserror ();
goto leave;