summaryrefslogtreecommitdiffstats
path: root/kbx/backend-kbx.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2019-09-27 14:28:36 +0200
committerWerner Koch <wk@gnupg.org>2019-09-27 14:28:36 +0200
commit8e574130482167dc7d2e2888cc80ad6584345e3d (patch)
treeaed1a6c563b60dae10b9501a24b0a0fd4fc7a640 /kbx/backend-kbx.c
parentkbx: Store the UBIB in the blob. (diff)
downloadgnupg2-8e574130482167dc7d2e2888cc80ad6584345e3d.tar.xz
gnupg2-8e574130482167dc7d2e2888cc80ad6584345e3d.zip
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>
Diffstat (limited to 'kbx/backend-kbx.c')
-rw-r--r--kbx/backend-kbx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kbx/backend-kbx.c b/kbx/backend-kbx.c
index 851f2dadf..438d300b0 100644
--- a/kbx/backend-kbx.c
+++ b/kbx/backend-kbx.c
@@ -200,7 +200,7 @@ be_kbx_add_resource (ctrl_t ctrl, backend_handle_t *r_hd,
leave:
xfree (hd);
- return 0;
+ return err;
}