projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Extensive application of __owur to CT functions that return a boolean
[openssl.git]
/
apps
/
crl2p7.c
diff --git
a/apps/crl2p7.c
b/apps/crl2p7.c
index 930875ac84e4b306211a38f8112f920bbdda3192..e864973b0923530a48f6334647cae50864445368 100644
(file)
--- 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 ((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;
}
sk_OPENSSL_STRING_free(certflst);
goto end;
}
@@
-146,7
+146,8
@@
int crl2pkcs7_main(int argc, char **argv)
}
}
argc = opt_num_rest();
}
}
argc = opt_num_rest();
- argv = opt_rest();
+ if (argc != 0)
+ goto opthelp;
if (!nocrl) {
in = bio_open_default(infile, 'r', informat);
if (!nocrl) {
in = bio_open_default(infile, 'r', informat);