Fix but in apps/pkcs12.c
authorDr. Stephen Henson <steve@openssl.org>
Fri, 22 Sep 2006 00:28:37 +0000 (00:28 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 22 Sep 2006 00:28:37 +0000 (00:28 +0000)
PR: 1377

apps/pkcs12.c

index 308f9208a11713e6fcde6a2e0278bdc79cf12b93..688a0cee60685b3de3533062a742fd6bad3ebb58 100644 (file)
@@ -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);