From: Viktor Dukhovni Date: Mon, 14 Dec 2015 01:25:16 +0000 (-0500) Subject: Fix option value parsing in crl2pkcs7 -certfile X-Git-Tag: OpenSSL_1_1_0-pre2~236 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=a465ca7841409522419954f28f4847b2423c75f3 Fix option value parsing in crl2pkcs7 -certfile Reviewed-by: Rich Saltz --- diff --git a/apps/crl2p7.c b/apps/crl2p7.c index 930875ac84..74bb893900 100644 --- a/apps/crl2p7.c +++ b/apps/crl2p7.c @@ -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; }