agent: Fix bug introduced earlier today.

* agent/findkey.c (agent_write_private_key): Fix condition.
--

Fixes-commit: 755920d433
This commit is contained in:
Werner Koch 2022-08-16 16:41:23 +02:00
parent 891b941bbf
commit 3591112fdb
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
1 changed files with 1 additions and 1 deletions

View File

@ -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