mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
agent: Minor cleanup for recent change in findkey.c
* agent/findkey.c (agent_write_private_key): Avoid label name error. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
fdb653a33e
commit
8c40b3b98d
@ -157,14 +157,10 @@ agent_write_private_key (const unsigned char *grip,
|
|||||||
{
|
{
|
||||||
fp = es_fopen (fname, "wbx,mode=-rw");
|
fp = es_fopen (fname, "wbx,mode=-rw");
|
||||||
if (!fp)
|
if (!fp)
|
||||||
{
|
|
||||||
tmperr = gpg_error_from_syserror ();
|
tmperr = gpg_error_from_syserror ();
|
||||||
goto error;
|
|
||||||
}
|
}
|
||||||
}
|
if (!fp)
|
||||||
else
|
|
||||||
{
|
{
|
||||||
error:
|
|
||||||
log_error ("can't create '%s': %s\n", fname, gpg_strerror (tmperr));
|
log_error ("can't create '%s': %s\n", fname, gpg_strerror (tmperr));
|
||||||
xfree (fname);
|
xfree (fname);
|
||||||
return tmperr;
|
return tmperr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user