aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-dinsig.c
diff options
context:
space:
mode:
Diffstat (limited to 'scd/app-dinsig.c')
-rw-r--r--scd/app-dinsig.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/scd/app-dinsig.c b/scd/app-dinsig.c
index 990de3405..be3019ee1 100644
--- a/scd/app-dinsig.c
+++ b/scd/app-dinsig.c
@@ -226,7 +226,10 @@ do_readcert (app_t app, const char *certid,
else if ( class == CLASS_UNIVERSAL && tag == TAG_SET && constructed )
rootca = 1;
else
- return gpg_error (GPG_ERR_INV_OBJ);
+ {
+ err = gpg_error (GPG_ERR_INV_OBJ);
+ goto leave;
+ }
totobjlen = objlen + hdrlen;
log_assert (totobjlen <= buflen);