summaryrefslogtreecommitdiffstats
path: root/sm
diff options
context:
space:
mode:
Diffstat (limited to 'sm')
-rw-r--r--sm/minip12.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sm/minip12.c b/sm/minip12.c
index ad29fc24d..29b48984e 100644
--- a/sm/minip12.c
+++ b/sm/minip12.c
@@ -1946,7 +1946,10 @@ p12_parse (const unsigned char *buffer, size_t length, const char *pw,
where = "bag.encryptedData";
consumed = 0;
if (parse_bag_encrypted_data (&ctx, p, n, (p - p_start), &consumed))
- goto bailout;
+ {
+ *r_badpass = ctx.badpass;
+ goto bailout;
+ }
if (lenndef)
len += consumed;
}