agent: Fix agent_update_private_key.

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

--

Cherry-pick master commit of:
	08e529fa7c

Fixes-commit: a216e9c028
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2023-10-04 10:23:30 +09:00
parent 9a3e41c151
commit 68b7aff9ce
No known key found for this signature in database
GPG Key ID: 640114AF89DE6054
1 changed files with 1 additions and 1 deletions

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;