aboutsummaryrefslogtreecommitdiffstats
path: root/agent/findkey.c
diff options
context:
space:
mode:
Diffstat (limited to 'agent/findkey.c')
-rw-r--r--agent/findkey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/findkey.c b/agent/findkey.c
index 5f8604ac3..dadcc3cd9 100644
--- a/agent/findkey.c
+++ b/agent/findkey.c
@@ -268,7 +268,7 @@ agent_write_private_key (const unsigned char *grip,
estream_t fp;
fname = fname_from_keygrip (grip);
- if (fname)
+ if (!fname)
return gpg_error_from_syserror ();
/* FIXME: Write to a temp file first so that write failures during