aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2023-10-04 01:23:30 +0000
committerNIIBE Yutaka <[email protected]>2023-10-04 01:25:30 +0000
commit08e529fa7cfa8f55256337dd525fe8724c78cd92 (patch)
treeae910a9786cd81c6d54b3f49269f808331103738
parentbuild: Simplify detecting a TPM emulator. (diff)
downloadgnupg-08e529fa7cfa8f55256337dd525fe8724c78cd92.tar.gz
gnupg-08e529fa7cfa8f55256337dd525fe8724c78cd92.zip
agent: Fix agent_update_private_key.
* agent/findkey.c (agent_update_private_key): Check FNAME0. -- Fixes-commit: a216e9c028ee389c4bf0250b822d567ffe9ad85e Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r--agent/findkey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/findkey.c b/agent/findkey.c
index c2f6c3d4c..a5f022574 100644
--- a/agent/findkey.c
+++ b/agent/findkey.c
@@ -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;