summaryrefslogtreecommitdiffstats
path: root/apps/ec.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/ec.c
parentapps_extra_src changed name to apps_aux_src, rename everywhere (diff)
downloadopenssl-033585175485077bf7f5bbb352fd4f162d0c235f.tar.xz
openssl-033585175485077bf7f5bbb352fd4f162d0c235f.zip
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/ec.c')
-rw-r--r--apps/ec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/ec.c b/apps/ec.c
index 6f811e35c9..432e9ff5eb 100644
--- a/apps/ec.c
+++ b/apps/ec.c
@@ -205,7 +205,9 @@ int ec_main(int argc, char **argv)
}
}
argc = opt_num_rest();
- argv = opt_rest();
+ if (argc != 0)
+ goto opthelp;
+
private = param_out || pubin || pubout ? 0 : 1;
if (text && !pubin)
private = 1;