projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Check non-option arguments
[openssl.git]
/
apps
/
ocsp.c
diff --git
a/apps/ocsp.c
b/apps/ocsp.c
index 174f2373404f663438b23ccb7d53d604f9f4fd2f..982423d1ef129e1349651c31a90d8658f3204d9a 100644
(file)
--- a/
apps/ocsp.c
+++ b/
apps/ocsp.c
@@
-514,14
+514,17
@@
int ocsp_main(int argc, char **argv)
break;
}
}
break;
}
}
+
+ /* No extra arguments. */
+ argc = opt_num_rest();
+ if (argc != 0)
+ goto opthelp;
+
if (trailing_md) {
BIO_printf(bio_err, "%s: Digest must be before -cert or -serial\n",
prog);
goto opthelp;
}
if (trailing_md) {
BIO_printf(bio_err, "%s: Digest must be before -cert or -serial\n",
prog);
goto opthelp;
}
- argc = opt_num_rest();
- if (argc != 0)
- goto opthelp;
/* Have we anything to do? */
if (req == NULL && reqin == NULL
/* Have we anything to do? */
if (req == NULL && reqin == NULL