From 2490f4e8e1d1feecb44aefa79bd71f5f8b06c9a4 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 22 Feb 2021 18:28:45 +0100 Subject: scd: Fix readkey --info in case a readkey command is available. * scd/command.c (do_readkey): Make --info also work if a readkey command is available. * scd/app-p15.c (cdf_object_from_certid): Fix a but introduced with the previous commit. --- scd/app-p15.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scd/app-p15.c') 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; } -- cgit v1.2.3