summaryrefslogtreecommitdiffstats
path: root/providers/implementations/encode_decode/decode_epki2pki.c
diff options
context:
space:
mode:
Diffstat (limited to 'providers/implementations/encode_decode/decode_epki2pki.c')
-rw-r--r--providers/implementations/encode_decode/decode_epki2pki.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/providers/implementations/encode_decode/decode_epki2pki.c b/providers/implementations/encode_decode/decode_epki2pki.c
index c0d014aef1..66f4ff659d 100644
--- a/providers/implementations/encode_decode/decode_epki2pki.c
+++ b/providers/implementations/encode_decode/decode_epki2pki.c
@@ -90,6 +90,7 @@ static int epki2pki_decode(void *vctx, OSSL_CORE_BIO *cin, int selection,
if (!pw_cb(pbuf, sizeof(pbuf), &plen, NULL, pw_cbarg)) {
ERR_raise(ERR_LIB_PROV, PROV_R_UNABLE_TO_GET_PASSPHRASE);
+ ok = 0;
} else {
const ASN1_OCTET_STRING *oct;
unsigned char *new_der = NULL;