aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-p15.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--scd/app-p15.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scd/app-p15.c b/scd/app-p15.c
index 92518258e..581798d2b 100644
--- a/scd/app-p15.c
+++ b/scd/app-p15.c
@@ -768,8 +768,8 @@ cdf_object_from_certid (app_t app, const char *certid, cdf_object_t *r_cdf)
err = cdf_object_from_objid (app, objidlen, objid, &cdf);
xfree (objid);
- if (!cdf)
- return gpg_error (GPG_ERR_NOT_FOUND);
+ if (err)
+ return err;
*r_cdf = cdf;
return 0;
}