summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/pkcs12.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/pkcs12.c b/apps/pkcs12.c
index 308f9208a1..688a0cee60 100644
--- a/apps/pkcs12.c
+++ b/apps/pkcs12.c
@@ -180,7 +180,8 @@ int MAIN(int argc, char **argv)
args++;
if (!strcmp(*args, "NONE"))
cert_pbe = -1;
- cert_pbe=OBJ_txt2nid(*args);
+ else
+ cert_pbe=OBJ_txt2nid(*args);
if(cert_pbe == NID_undef) {
BIO_printf(bio_err,
"Unknown PBE algorithm %s\n", *args);