diff options
author | Kurt Roeckx <kurt@roeckx.be> | 2016-02-14 20:45:02 +0100 |
---|---|---|
committer | Kurt Roeckx <kurt@roeckx.be> | 2016-02-20 14:53:53 +0100 |
commit | 033585175485077bf7f5bbb352fd4f162d0c235f (patch) | |
tree | 4280e222f708758135ce158410099f7952cef916 /apps/sess_id.c | |
parent | 5ee719da047ab1de41882568b1ebdb745ce00aed (diff) | |
download | openssl-033585175485077bf7f5bbb352fd4f162d0c235f.tar.gz |
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/sess_id.c')
-rw-r--r-- | apps/sess_id.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/sess_id.c b/apps/sess_id.c index 2be2692f08..f40f131e1b 100644 --- a/apps/sess_id.c +++ b/apps/sess_id.c @@ -139,7 +139,8 @@ int sess_id_main(int argc, char **argv) } } argc = opt_num_rest(); - argv = opt_rest(); + if (argc != 0) + goto opthelp; x = load_sess_id(infile, informat); if (x == NULL) { |