mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
kbx: Fix error code return in keyboxd.
* kbx/frontend.c (kbxd_add_resource): Print a diagnostic on error. * kbx/backend-kbx.c (be_kbx_add_resource): Acttually returh the error code. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
0af1c6447d
commit
8e57413048
@ -200,7 +200,7 @@ be_kbx_add_resource (ctrl_t ctrl, backend_handle_t *r_hd,
|
||||
|
||||
leave:
|
||||
xfree (hd);
|
||||
return 0;
|
||||
return err;
|
||||
}
|
||||
|
||||
|
||||
|
@ -194,7 +194,11 @@ kbxd_add_resource (ctrl_t ctrl, const char *filename_arg, int readonly)
|
||||
|
||||
leave:
|
||||
if (err)
|
||||
be_generic_release_backend (ctrl, handle);
|
||||
{
|
||||
log_error ("error adding resource '%s': %s\n",
|
||||
filename, gpg_strerror (err));
|
||||
be_generic_release_backend (ctrl, handle);
|
||||
}
|
||||
xfree (filename);
|
||||
return err;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user