summaryrefslogtreecommitdiffstats
path: root/apps/ocsp.c
diff options
context:
space:
mode:
authorKurt Roeckx <kurt@roeckx.be>2016-02-14 20:45:02 +0100
committerKurt Roeckx <kurt@roeckx.be>2016-02-20 14:53:53 +0100
commit033585175485077bf7f5bbb352fd4f162d0c235f (patch)
tree4280e222f708758135ce158410099f7952cef916 /apps/ocsp.c
parent5ee719da047ab1de41882568b1ebdb745ce00aed (diff)
argv was set but unused
Also gives an error message when you gave it a parameter it didn't expect. Reviewed-by: Rich Salz <rsalz@openssl.org> MR: #2009
Diffstat (limited to 'apps/ocsp.c')
-rw-r--r--apps/ocsp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/ocsp.c b/apps/ocsp.c
index 502adf1ba5..e26afe1f94 100644
--- a/apps/ocsp.c
+++ b/apps/ocsp.c
@@ -491,7 +491,8 @@ int ocsp_main(int argc, char **argv)
}
}
argc = opt_num_rest();
- argv = opt_rest();
+ if (argc != 0)
+ goto opthelp;
/* Have we anything to do? */
if (!req && !reqin && !respin && !(port && ridx_filename))