Fix option value parsing in crl2pkcs7 -certfile
authorViktor Dukhovni <openssl-users@dukhovni.org>
Mon, 14 Dec 2015 01:25:16 +0000 (20:25 -0500)
committerViktor Dukhovni <openssl-users@dukhovni.org>
Mon, 14 Dec 2015 02:31:03 +0000 (21:31 -0500)
Reviewed-by: Rich Saltz <rsalz@openssl.org>
apps/crl2p7.c

index 930875ac84e4b306211a38f8112f920bbdda3192..74bb8939003924b2656ef604154c402005265e59 100644 (file)
@@ -138,7 +138,7 @@ int crl2pkcs7_main(int argc, char **argv)
             if ((certflst == NULL)
                 && (certflst = sk_OPENSSL_STRING_new_null()) == NULL)
                 goto end;
-            if (!sk_OPENSSL_STRING_push(certflst, *(++argv))) {
+            if (!sk_OPENSSL_STRING_push(certflst, opt_arg())) {
                 sk_OPENSSL_STRING_free(certflst);
                 goto end;
             }