diff options
author | Werner Koch <[email protected]> | 2021-02-22 17:28:45 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2021-02-22 17:28:45 +0000 |
commit | 2490f4e8e1d1feecb44aefa79bd71f5f8b06c9a4 (patch) | |
tree | c753b28b18146bef1b8d644592f0130c1bc6b490 /scd/app-p15.c | |
parent | scd:p15: Extract extended usage flagsand act upon them. (diff) | |
download | gnupg-2490f4e8e1d1feecb44aefa79bd71f5f8b06c9a4.tar.gz gnupg-2490f4e8e1d1feecb44aefa79bd71f5f8b06c9a4.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | scd/app-p15.c | 4 |
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; } |